mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +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) {
|
else if (position > length) {
|
||||||
position = length
|
position = length
|
||||||
}
|
}
|
||||||
target = (target + '')
|
target = `${ target }`
|
||||||
return string.slice(position, position + target.length) == target
|
return string.slice(position, position + target.length) == target
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user