Bump to v4.11.2.

This commit is contained in:
John-David Dalton
2016-04-19 22:17:16 -07:00
parent 29c408ee8a
commit ccdfca5392
86 changed files with 714 additions and 447 deletions

View File

@@ -1,4 +1,4 @@
define(['./_baseClamp', './toInteger', './toString'], function(baseClamp, toInteger, toString) {
define(['./_baseClamp', './_baseToString', './toInteger', './toString'], function(baseClamp, baseToString, toInteger, toString) {
/**
* Checks if `string` starts with the given target string.
@@ -26,7 +26,7 @@ define(['./_baseClamp', './toInteger', './toString'], function(baseClamp, toInte
function startsWith(string, target, position) {
string = toString(string);
position = baseClamp(toInteger(position), 0, string.length);
return string.lastIndexOf(target, position) == position;
return string.lastIndexOf(baseToString(target), position) == position;
}
return startsWith;