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(['./_castSlice', './_charsEndIndex', './_stringToArray', './toString'], function(castSlice, charsEndIndex, stringToArray, toString) {
define(['./_baseToString', './_castSlice', './_charsEndIndex', './_stringToArray', './toString'], function(baseToString, castSlice, charsEndIndex, stringToArray, toString) {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
@@ -27,13 +27,10 @@ define(['./_castSlice', './_charsEndIndex', './_stringToArray', './toString'], f
*/
function trimEnd(string, chars, guard) {
string = toString(string);
if (!string) {
return string;
}
if (guard || chars === undefined) {
if (string && (guard || chars === undefined)) {
return string.replace(reTrimEnd, '');
}
if (!(chars += '')) {
if (!string || !(chars = baseToString(chars))) {
return string;
}
var strSymbols = stringToArray(string),