mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -26,7 +26,8 @@ define(['./_baseClamp', './_baseToString', './toInteger', './toString'], functio
|
||||
function startsWith(string, target, position) {
|
||||
string = toString(string);
|
||||
position = baseClamp(toInteger(position), 0, string.length);
|
||||
return string.lastIndexOf(baseToString(target), position) == position;
|
||||
target = baseToString(target);
|
||||
return string.slice(position, position + target.length) == target;
|
||||
}
|
||||
|
||||
return startsWith;
|
||||
|
||||
Reference in New Issue
Block a user