Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 22:53:08 -07:00
parent 57f1942947
commit 76b289fe6e
52 changed files with 308 additions and 291 deletions

View File

@@ -1,4 +1,4 @@
define(['./_charsStartIndex', './_stringToArray', './toString'], function(charsStartIndex, stringToArray, toString) {
define(['./_castSlice', './_charsStartIndex', './_stringToArray', './toString'], function(castSlice, charsStartIndex, stringToArray, toString) {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
@@ -33,14 +33,13 @@ define(['./_charsStartIndex', './_stringToArray', './toString'], function(charsS
if (guard || chars === undefined) {
return string.replace(reTrimStart, '');
}
chars = (chars + '');
if (!chars) {
if (!(chars += '')) {
return string;
}
var strSymbols = stringToArray(string);
return strSymbols
.slice(charsStartIndex(strSymbols, stringToArray(chars)))
.join('');
var strSymbols = stringToArray(string),
start = charsStartIndex(strSymbols, stringToArray(chars));
return castSlice(strSymbols, start).join('');
}
return trimStart;