Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:17:56 -06:00
parent 0c27706e89
commit c7a7540e16
28 changed files with 195 additions and 152 deletions

View File

@@ -25,7 +25,10 @@ define(['./_baseClamp', './_baseToString', './toInteger', './toString'], functio
*/
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;
}