mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v4.2.1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# lodash.split v4.2.0
|
||||
# lodash.split v4.2.1
|
||||
|
||||
The [lodash](https://lodash.com/) method `_.split` exported as a [Node.js](https://nodejs.org/) module.
|
||||
|
||||
@@ -15,4 +15,4 @@ In Node.js:
|
||||
var split = require('lodash.split');
|
||||
```
|
||||
|
||||
See the [documentation](https://lodash.com/docs#split) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.split) for more details.
|
||||
See the [documentation](https://lodash.com/docs#split) or [package source](https://github.com/lodash/lodash/blob/4.2.1-npm-packages/lodash.split) for more details.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* lodash 4.2.0 (Custom Build) <https://lodash.com/>
|
||||
* lodash 4.2.1 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modularize exports="npm" -o ./`
|
||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
@@ -78,7 +78,8 @@ function stringToArray(string) {
|
||||
}
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
var objectProto = Object.prototype,
|
||||
stringProto = String.prototype;
|
||||
|
||||
/**
|
||||
* Used to resolve the
|
||||
@@ -87,6 +88,9 @@ var objectProto = Object.prototype;
|
||||
*/
|
||||
var objectToString = objectProto.toString;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeSplit = stringProto.split;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.property` without support for deep paths.
|
||||
*
|
||||
@@ -364,7 +368,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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lodash.split",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.1",
|
||||
"description": "The lodash method `_.split` exported as a module.",
|
||||
"homepage": "https://lodash.com/",
|
||||
"icon": "https://lodash.com/icon.svg",
|
||||
|
||||
Reference in New Issue
Block a user