Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:41:46 -06:00
parent db9697dfef
commit b93c3b1ee8
33 changed files with 372 additions and 331 deletions

View File

@@ -28,7 +28,10 @@ var baseClamp = require('./_baseClamp'),
*/
function startsWith(string, target, position) {
string = toString(string);
position = baseClamp(toInteger(position), 0, string.length);
position = position == null
? 0
: baseClamp(toInteger(position), 0, string.length);
target = baseToString(target);
return string.slice(position, position + target.length) == target;
}