mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Prefere ES6 templates.
This commit is contained in:
committed by
John-David Dalton
parent
bb7c959479
commit
f983ff2b7c
@@ -29,7 +29,7 @@ function startsWith(string, target, position) {
|
||||
else if (position > length) {
|
||||
position = length
|
||||
}
|
||||
target = (target + '')
|
||||
target = `${ target }`
|
||||
return string.slice(position, position + target.length) == target
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user