Bump to v4.11.0.

This commit is contained in:
John-David Dalton
2016-04-12 22:28:19 -07:00
parent be0bf2681b
commit 63ba93dcb3
28 changed files with 390 additions and 271 deletions

View File

@@ -8,6 +8,12 @@ var castSlice = require('./_castSlice'),
/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295;
/** Used for built-in method references. */
var stringProto = String.prototype;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeSplit = stringProto.split;
/**
* Splits `string` by `separator`.
*
@@ -45,7 +51,7 @@ function split(string, separator, limit) {
return castSlice(stringToArray(string), 0, limit);
}
}
return string.split(separator, limit);
return nativeSplit.call(string, separator, limit);
}
module.exports = split;