mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Compare commits
2 Commits
3.8.0-npm-
...
3.8.2-npm-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f24cdadc22 | ||
|
|
1eca87b569 |
@@ -1,4 +1,4 @@
|
|||||||
# lodash v3.8.0
|
# lodash v3.8.2
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basepullat v3.8.0
|
# lodash._basepullat v3.8.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `basePullAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `basePullAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var basePullAt = require('lodash._basepullat');
|
var basePullAt = require('lodash._basepullat');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.8.0-npm-packages/lodash._basepullat) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.8.2-npm-packages/lodash._basepullat) for more details.
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
/**
|
/** Used to detect unsigned integer values. */
|
||||||
* lodash 3.8.0 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
/** Used to detect unsigned integer values. */
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
var reIsUint = /^\d+$/;
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used for native method references. */
|
/** Used for native method references. */
|
||||||
var arrayProto = Array.prototype;
|
var arrayProto = Array.prototype;
|
||||||
@@ -14,10 +10,10 @@ var arrayProto = Array.prototype;
|
|||||||
var splice = arrayProto.splice;
|
var splice = arrayProto.splice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
* Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
|
||||||
* of an array-like value.
|
* of an array-like value.
|
||||||
*/
|
*/
|
||||||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.pullAt` without support for individual
|
* The base implementation of `_.pullAt` without support for individual
|
||||||
@@ -31,7 +27,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
|||||||
function basePullAt(array, indexes) {
|
function basePullAt(array, indexes) {
|
||||||
var length = array ? indexes.length : 0;
|
var length = array ? indexes.length : 0;
|
||||||
while (length--) {
|
while (length--) {
|
||||||
var index = parseFloat(indexes[length]);
|
var index = indexes[length];
|
||||||
if (index != previous && isIndex(index)) {
|
if (index != previous && isIndex(index)) {
|
||||||
var previous = index;
|
var previous = index;
|
||||||
splice.call(array, index, 1);
|
splice.call(array, index, 1);
|
||||||
@@ -49,7 +45,7 @@ function basePullAt(array, indexes) {
|
|||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
*/
|
*/
|
||||||
function isIndex(value, length) {
|
function isIndex(value, length) {
|
||||||
value = +value;
|
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
return value > -1 && value % 1 == 0 && value < length;
|
return value > -1 && value % 1 == 0 && value < length;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basepullat",
|
"name": "lodash._basepullat",
|
||||||
"version": "3.8.0",
|
"version": "3.8.2",
|
||||||
"description": "The modern build of lodash’s internal `basePullAt` as a module.",
|
"description": "The modern build of lodash’s internal `basePullAt` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._topath v3.8.0
|
# lodash._topath v3.8.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `toPath` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `toPath` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var toPath = require('lodash._topath');
|
var toPath = require('lodash._topath');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.8.0-npm-packages/lodash._topath) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.8.1-npm-packages/lodash._topath) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.8.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.8.1 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
@@ -23,9 +23,6 @@ var reEscapeChar = /\\(\\)?/g;
|
|||||||
* @returns {string} Returns the string.
|
* @returns {string} Returns the string.
|
||||||
*/
|
*/
|
||||||
function baseToString(value) {
|
function baseToString(value) {
|
||||||
if (typeof value == 'string') {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
return value == null ? '' : (value + '');
|
return value == null ? '' : (value + '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._topath",
|
"name": "lodash._topath",
|
||||||
"version": "3.8.0",
|
"version": "3.8.1",
|
||||||
"description": "The modern build of lodash’s internal `toPath` as a module.",
|
"description": "The modern build of lodash’s internal `toPath` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.zipwith v3.8.0
|
# lodash.zipwith v3.8.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.zipWith` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.zipWith` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var zipWith = require('lodash.zipwith');
|
var zipWith = require('lodash.zipwith');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#zipWith) or [package source](https://github.com/lodash/lodash/blob/3.8.0-npm-packages/lodash.zipwith) for more details.
|
See the [documentation](https://lodash.com/docs#zipWith) or [package source](https://github.com/lodash/lodash/blob/3.8.1-npm-packages/lodash.zipwith) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.8.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.8.1 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
@@ -28,8 +28,8 @@ var restParam = require('lodash.restparam'),
|
|||||||
*/
|
*/
|
||||||
var zipWith = restParam(function(arrays) {
|
var zipWith = restParam(function(arrays) {
|
||||||
var length = arrays.length,
|
var length = arrays.length,
|
||||||
iteratee = arrays[length - 2],
|
iteratee = length > 2 ? arrays[length - 2] : undefined,
|
||||||
thisArg = arrays[length - 1];
|
thisArg = length > 1 ? arrays[length - 1] : undefined;
|
||||||
|
|
||||||
if (length > 2 && typeof iteratee == 'function') {
|
if (length > 2 && typeof iteratee == 'function') {
|
||||||
length -= 2;
|
length -= 2;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.zipwith",
|
"name": "lodash.zipwith",
|
||||||
"version": "3.8.0",
|
"version": "3.8.1",
|
||||||
"description": "The modern build of lodash’s `_.zipWith` as a module.",
|
"description": "The modern build of lodash’s `_.zipWith` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
Reference in New Issue
Block a user