Bump to v4.11.2.

This commit is contained in:
John-David Dalton
2016-04-19 22:21:01 -07:00
parent 692aabae13
commit 35805ec250
87 changed files with 342 additions and 163 deletions

View File

@@ -1,3 +1,4 @@
import baseToString from './_baseToString';
import castSlice from './_castSlice';
import charsEndIndex from './_charsEndIndex';
import charsStartIndex from './_charsStartIndex';
@@ -31,13 +32,10 @@ var reTrim = /^\s+|\s+$/g;
*/
function trim(string, chars, guard) {
string = toString(string);
if (!string) {
return string;
}
if (guard || chars === undefined) {
if (string && (guard || chars === undefined)) {
return string.replace(reTrim, '');
}
if (!(chars += '')) {
if (!string || !(chars = baseToString(chars))) {
return string;
}
var strSymbols = stringToArray(string),