Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:23:37 -06:00
parent 035ce4f44c
commit f71a7a04b5
28 changed files with 90 additions and 68 deletions

View File

@@ -28,7 +28,10 @@ import toString from './toString.js';
*/
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;
}