mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Compare commits
2 Commits
3.0.0-npm-
...
3.0.2-npm-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2db58867b | ||
|
|
60b8329a73 |
@@ -1,4 +1,4 @@
|
|||||||
# lodash v3.0.0
|
# lodash v3.0.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,20 +0,0 @@
|
|||||||
# lodash._arraymax v3.0.0
|
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayMax` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._arraymax
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js/io.js:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var arrayMax = require('lodash._arraymax');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arraymax) for more details.
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as references for `-Infinity` and `Infinity`. */
|
|
||||||
var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A specialized version of `_.max` for arrays without support for iteratees.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to iterate over.
|
|
||||||
* @returns {*} Returns the maximum value.
|
|
||||||
*/
|
|
||||||
function arrayMax(array) {
|
|
||||||
var index = -1,
|
|
||||||
length = array.length,
|
|
||||||
result = NEGATIVE_INFINITY;
|
|
||||||
|
|
||||||
while (++index < length) {
|
|
||||||
var value = array[index];
|
|
||||||
if (value > result) {
|
|
||||||
result = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = arrayMax;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._arraymax",
|
|
||||||
"version": "3.0.0",
|
|
||||||
"description": "The modern build of lodash’s internal `arrayMax` as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)",
|
|
||||||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
|
|
||||||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# lodash._arraymin v3.0.0
|
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayMin` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._arraymin
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js/io.js:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var arrayMin = require('lodash._arraymin');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arraymin) for more details.
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as references for `-Infinity` and `Infinity`. */
|
|
||||||
var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A specialized version of `_.min` for arrays without support for iteratees.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to iterate over.
|
|
||||||
* @returns {*} Returns the minimum value.
|
|
||||||
*/
|
|
||||||
function arrayMin(array) {
|
|
||||||
var index = -1,
|
|
||||||
length = array.length,
|
|
||||||
result = POSITIVE_INFINITY;
|
|
||||||
|
|
||||||
while (++index < length) {
|
|
||||||
var value = array[index];
|
|
||||||
if (value < result) {
|
|
||||||
result = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = arrayMin;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._arraymin",
|
|
||||||
"version": "3.0.0",
|
|
||||||
"description": "The modern build of lodash’s internal `arrayMin` as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)",
|
|
||||||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
|
|
||||||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseassign v3.0.0
|
# lodash._baseassign v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAssign` 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 `baseAssign` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseAssign = require('lodash._baseassign');
|
var baseAssign = require('lodash._baseassign');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseassign) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseassign) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -25,14 +25,14 @@ function baseAssign(object, source, customizer) {
|
|||||||
return baseCopy(source, object, props);
|
return baseCopy(source, object, props);
|
||||||
}
|
}
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = props.length
|
length = props.length;
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
var key = props[index],
|
var key = props[index],
|
||||||
value = object[key],
|
value = object[key],
|
||||||
result = customizer(value, source[key], key, object, source);
|
result = customizer(value, source[key], key, object, source);
|
||||||
|
|
||||||
if ((result === result ? result !== value : value === value) ||
|
if ((result === result ? (result !== value) : (value === value)) ||
|
||||||
(typeof value == 'undefined' && !(key in object))) {
|
(typeof value == 'undefined' && !(key in object))) {
|
||||||
object[key] = result;
|
object[key] = result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseassign",
|
"name": "lodash._baseassign",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseAssign` as a module.",
|
"description": "The modern build of lodash’s internal `baseAssign` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseat v3.0.0
|
# lodash._baseat v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAt` 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 `baseAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseAt = require('lodash._baseat');
|
var baseAt = require('lodash._baseat');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseat) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseat) for more details.
|
||||||
|
|||||||
@@ -1,18 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Used as the maximum length of an array-like value.
|
|
||||||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
|
||||||
* for more details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
||||||
* of an array-like value.
|
* of an array-like value.
|
||||||
@@ -20,33 +14,69 @@
|
|||||||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.at` without support for strings and individual
|
* The base implementation of `_.at` without support for string collections
|
||||||
* key arguments.
|
* and individual key arguments.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array|Object} collection The collection to iterate over.
|
* @param {Array|Object} collection The collection to iterate over.
|
||||||
* @param {number[]|string[]} [props] The property names or indexes of elements to pick.
|
* @param {number[]|string[]} props The property names or indexes of elements to pick.
|
||||||
* @returns {Array} Returns the new array of picked elements.
|
* @returns {Array} Returns the new array of picked elements.
|
||||||
*/
|
*/
|
||||||
function baseAt(collection, props) {
|
function baseAt(collection, props) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = collection.length,
|
isNil = collection == null,
|
||||||
isArr = isLength(length),
|
isArr = !isNil && isArrayLike(collection),
|
||||||
|
length = isArr && collection.length,
|
||||||
propsLength = props.length,
|
propsLength = props.length,
|
||||||
result = Array(propsLength);
|
result = Array(propsLength);
|
||||||
|
|
||||||
while(++index < propsLength) {
|
while(++index < propsLength) {
|
||||||
var key = props[index];
|
var key = props[index];
|
||||||
if (isArr) {
|
if (isArr) {
|
||||||
key = parseFloat(key);
|
|
||||||
result[index] = isIndex(key, length) ? collection[key] : undefined;
|
result[index] = isIndex(key, length) ? collection[key] : undefined;
|
||||||
} else {
|
} else {
|
||||||
result[index] = collection[key];
|
result[index] = isNil ? undefined : collection[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base implementation of `_.property` without support for deep paths.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {Function} Returns the new function.
|
||||||
|
*/
|
||||||
|
function baseProperty(key) {
|
||||||
|
return function(object) {
|
||||||
|
return object == null ? undefined : object[key];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the "length" property value of `object`.
|
||||||
|
*
|
||||||
|
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
|
||||||
|
* that affects Safari on at least iOS 8.1-8.3 ARM64.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Object} object The object to query.
|
||||||
|
* @returns {*} Returns the "length" value.
|
||||||
|
*/
|
||||||
|
var getLength = baseProperty('length');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if `value` is array-like.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value The value to check.
|
||||||
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||||
|
*/
|
||||||
|
function isArrayLike(value) {
|
||||||
|
return value != null && isLength(getLength(value));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like index.
|
* Checks if `value` is a valid array-like index.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseat",
|
"name": "lodash._baseat",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseAt` as a module.",
|
"description": "The modern build of lodash’s internal `baseAt` 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._basecallback v3.0.0
|
# lodash._basecallback v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCallback` 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 `baseCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseCallback = require('lodash._basecallback');
|
var baseCallback = require('lodash._basecallback');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecallback) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecallback) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||||
@@ -12,21 +12,6 @@ var baseClone = require('lodash._baseclone'),
|
|||||||
bindCallback = require('lodash._bindcallback'),
|
bindCallback = require('lodash._bindcallback'),
|
||||||
keys = require('lodash.keys');
|
keys = require('lodash.keys');
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `value` to a string if it is not one. An empty string is returned
|
|
||||||
* for `null` or `undefined` values.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to process.
|
|
||||||
* @returns {string} Returns the string.
|
|
||||||
*/
|
|
||||||
function baseToString(value) {
|
|
||||||
if (typeof value == 'string') {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
return value == null ? '' : (value + '');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for native method references. */
|
/** Used for native method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
@@ -56,7 +41,7 @@ function baseCallback(func, thisArg, argCount) {
|
|||||||
// Handle "_.property" and "_.matches" style callback shorthands.
|
// Handle "_.property" and "_.matches" style callback shorthands.
|
||||||
return type == 'object'
|
return type == 'object'
|
||||||
? baseMatches(func, !argCount)
|
? baseMatches(func, !argCount)
|
||||||
: baseProperty(argCount ? baseToString(func) : func);
|
: baseProperty(func + '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basecallback",
|
"name": "lodash._basecallback",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseCallback` as a module.",
|
"description": "The modern build of lodash’s internal `baseCallback` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseclone v3.0.0
|
# lodash._baseclone v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseClone` 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 `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseClone = require('lodash._baseclone');
|
var baseClone = require('lodash._baseclone');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseclone) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseclone) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -65,9 +65,8 @@ var objectProto = Object.prototype;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the `toStringTag` of values.
|
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
||||||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
* of values.
|
||||||
* for more details.
|
|
||||||
*/
|
*/
|
||||||
var objToString = objectProto.toString;
|
var objToString = objectProto.toString;
|
||||||
|
|
||||||
@@ -277,11 +276,9 @@ function initCloneByTag(object, tag, isDeep) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -302,7 +299,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return type == 'function' || (!!value && type == 'object');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseclone",
|
"name": "lodash._baseclone",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseClone` as a module.",
|
"description": "The modern build of lodash’s internal `baseClone` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basecompareascending v3.0.0
|
# lodash._basecompareascending v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCompareAscending` 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 `baseCompareAscending` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseCompareAscending = require('lodash._basecompareascending');
|
var baseCompareAscending = require('lodash._basecompareascending');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecompareascending) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basecompareascending) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -12,19 +12,28 @@
|
|||||||
* sorts them in ascending order without guaranteeing a stable sort.
|
* sorts them in ascending order without guaranteeing a stable sort.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to compare to `other`.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The value to compare to `value`.
|
* @param {*} other The other value to compare.
|
||||||
* @returns {number} Returns the sort order indicator for `value`.
|
* @returns {number} Returns the sort order indicator for `value`.
|
||||||
*/
|
*/
|
||||||
function baseCompareAscending(value, other) {
|
function baseCompareAscending(value, other) {
|
||||||
if (value !== other) {
|
if (value !== other) {
|
||||||
var valIsReflexive = value === value,
|
var valIsNull = value === null,
|
||||||
|
valIsUndef = value === undefined,
|
||||||
|
valIsReflexive = value === value;
|
||||||
|
|
||||||
|
var othIsNull = other === null,
|
||||||
|
othIsUndef = other === undefined,
|
||||||
othIsReflexive = other === other;
|
othIsReflexive = other === other;
|
||||||
|
|
||||||
if (value > other || !valIsReflexive || (typeof value == 'undefined' && othIsReflexive)) {
|
if ((value > other && !othIsNull) || !valIsReflexive ||
|
||||||
|
(valIsNull && !othIsUndef && othIsReflexive) ||
|
||||||
|
(valIsUndef && othIsReflexive)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (value < other || !othIsReflexive || (typeof other == 'undefined' && valIsReflexive)) {
|
if ((value < other && !valIsNull) || !othIsReflexive ||
|
||||||
|
(othIsNull && !valIsUndef && valIsReflexive) ||
|
||||||
|
(othIsUndef && valIsReflexive)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basecompareascending",
|
"name": "lodash._basecompareascending",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseCompareAscending` as a module.",
|
"description": "The modern build of lodash’s internal `baseCompareAscending` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basecopy v3.0.0
|
# lodash._basecopy v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCopy` 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 `baseCopy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseCopy = require('lodash._basecopy');
|
var baseCopy = require('lodash._basecopy');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecopy) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecopy) for more details.
|
||||||
|
|||||||
@@ -1,26 +1,24 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copies the properties of `source` to `object`.
|
* Copies properties of `source` to `object`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} source The object to copy properties from.
|
* @param {Object} source The object to copy properties from.
|
||||||
* @param {Object} [object={}] The object to copy properties to.
|
|
||||||
* @param {Array} props The property names to copy.
|
* @param {Array} props The property names to copy.
|
||||||
|
* @param {Object} [object={}] The object to copy properties to.
|
||||||
* @returns {Object} Returns `object`.
|
* @returns {Object} Returns `object`.
|
||||||
*/
|
*/
|
||||||
function baseCopy(source, object, props) {
|
function baseCopy(source, props, object) {
|
||||||
if (!props) {
|
object || (object = {});
|
||||||
props = object;
|
|
||||||
object = {};
|
|
||||||
}
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = props.length;
|
length = props.length;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basecopy",
|
"name": "lodash._basecopy",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseCopy` as a module.",
|
"description": "The modern build of lodash’s internal `baseCopy` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basecreate v3.0.0
|
# lodash._basecreate v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCreate` 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 `baseCreate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseCreate = require('lodash._basecreate');
|
var baseCreate = require('lodash._basecreate');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecreate) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basecreate) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -16,23 +16,21 @@
|
|||||||
* @returns {Object} Returns the new object.
|
* @returns {Object} Returns the new object.
|
||||||
*/
|
*/
|
||||||
var baseCreate = (function() {
|
var baseCreate = (function() {
|
||||||
function Object() {}
|
function object() {}
|
||||||
return function(prototype) {
|
return function(prototype) {
|
||||||
if (isObject(prototype)) {
|
if (isObject(prototype)) {
|
||||||
Object.prototype = prototype;
|
object.prototype = prototype;
|
||||||
var result = new Object;
|
var result = new object;
|
||||||
Object.prototype = null;
|
object.prototype = null;
|
||||||
}
|
}
|
||||||
return result || global.Object();
|
return result || {};
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -53,7 +51,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return !!value && (type == 'object' || type == 'function');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseCreate;
|
module.exports = baseCreate;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basecreate",
|
"name": "lodash._basecreate",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseCreate` as a module.",
|
"description": "The modern build of lodash’s internal `baseCreate` 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._basedelay v3.0.0
|
# lodash._basedelay v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseDelay` 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 `baseDelay` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseDelay = require('lodash._basedelay');
|
var baseDelay = require('lodash._basedelay');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basedelay) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basedelay) for more details.
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
var baseSlice = require('lodash._baseslice'),
|
var baseSlice = require('lodash._baseslice');
|
||||||
isFunction = require('lodash.isfunction');
|
|
||||||
|
|
||||||
/** Used as the `TypeError` message for "Functions" methods. */
|
/** Used as the `TypeError` message for "Functions" methods. */
|
||||||
var FUNC_ERROR_TEXT = 'Expected a function';
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
||||||
@@ -23,7 +22,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
|
|||||||
* @returns {number} Returns the timer id.
|
* @returns {number} Returns the timer id.
|
||||||
*/
|
*/
|
||||||
function baseDelay(func, wait, args, fromIndex) {
|
function baseDelay(func, wait, args, fromIndex) {
|
||||||
if (!isFunction(func)) {
|
if (typeof func != 'function') {
|
||||||
throw new TypeError(FUNC_ERROR_TEXT);
|
throw new TypeError(FUNC_ERROR_TEXT);
|
||||||
}
|
}
|
||||||
return setTimeout(function() { func.apply(undefined, baseSlice(args, fromIndex)); }, wait);
|
return setTimeout(function() { func.apply(undefined, baseSlice(args, fromIndex)); }, wait);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basedelay",
|
"name": "lodash._basedelay",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseDelay` as a module.",
|
"description": "The modern build of lodash’s internal `baseDelay` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash._baseslice": "^3.0.0",
|
"lodash._baseslice": "^3.0.0"
|
||||||
"lodash.isfunction": "^3.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basedifference v3.0.0
|
# lodash._basedifference v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseDifference` 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 `baseDifference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseDifference = require('lodash._basedifference');
|
var baseDifference = require('lodash._basedifference');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basedifference) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basedifference) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -29,7 +29,7 @@ function baseDifference(array, values) {
|
|||||||
var index = -1,
|
var index = -1,
|
||||||
indexOf = baseIndexOf,
|
indexOf = baseIndexOf,
|
||||||
isCommon = true,
|
isCommon = true,
|
||||||
cache = isCommon && values.length >= 200 && createCache(values),
|
cache = (isCommon && values.length >= 200) ? createCache(values) : null,
|
||||||
valuesLength = values.length;
|
valuesLength = values.length;
|
||||||
|
|
||||||
if (cache) {
|
if (cache) {
|
||||||
@@ -50,7 +50,7 @@ function baseDifference(array, values) {
|
|||||||
}
|
}
|
||||||
result.push(value);
|
result.push(value);
|
||||||
}
|
}
|
||||||
else if (indexOf(values, value) < 0) {
|
else if (indexOf(values, value, 0) < 0) {
|
||||||
result.push(value);
|
result.push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basedifference",
|
"name": "lodash._basedifference",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseDifference` as a module.",
|
"description": "The modern build of lodash’s internal `baseDifference` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseeach v3.0.0
|
# lodash._baseeach v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEach` 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 `baseEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseEach = require('lodash._baseeach');
|
var baseEach = require('lodash._baseeach');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseeach) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseeach) for more details.
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
var baseFor = require('lodash._basefor'),
|
var keys = require('lodash.keys');
|
||||||
keys = require('lodash.keys');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used as the maximum length of an array-like value.
|
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
||||||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
* of an array-like value.
|
||||||
* for more details.
|
|
||||||
*/
|
*/
|
||||||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
||||||
|
|
||||||
@@ -25,21 +23,21 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
|||||||
* @param {Function} iteratee The function invoked per iteration.
|
* @param {Function} iteratee The function invoked per iteration.
|
||||||
* @returns {Array|Object|string} Returns `collection`.
|
* @returns {Array|Object|string} Returns `collection`.
|
||||||
*/
|
*/
|
||||||
function baseEach(collection, iteratee) {
|
var baseEach = createBaseEach(baseForOwn);
|
||||||
var length = collection ? collection.length : 0;
|
|
||||||
if (!isLength(length)) {
|
|
||||||
return baseForOwn(collection, iteratee);
|
|
||||||
}
|
|
||||||
var index = -1,
|
|
||||||
iterable = toObject(collection);
|
|
||||||
|
|
||||||
while (++index < length) {
|
/**
|
||||||
if (iteratee(iterable[index], index, iterable) === false) {
|
* The base implementation of `baseForIn` and `baseForOwn` which iterates
|
||||||
break;
|
* over `object` properties returned by `keysFunc` invoking `iteratee` for
|
||||||
}
|
* each property. Iterator functions may exit iteration early by explicitly
|
||||||
}
|
* returning `false`.
|
||||||
return collection;
|
*
|
||||||
}
|
* @private
|
||||||
|
* @param {Object} object The object to iterate over.
|
||||||
|
* @param {Function} iteratee The function invoked per iteration.
|
||||||
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||||
|
* @returns {Object} Returns `object`.
|
||||||
|
*/
|
||||||
|
var baseFor = createBaseFor();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.forOwn` without support for callback
|
* The base implementation of `_.forOwn` without support for callback
|
||||||
@@ -54,9 +52,61 @@ function baseForOwn(object, iteratee) {
|
|||||||
return baseFor(object, iteratee, keys);
|
return baseFor(object, iteratee, keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a `baseEach` or `baseEachRight` function.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} eachFunc The function to iterate over a collection.
|
||||||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
* @returns {Function} Returns the new base function.
|
||||||
|
*/
|
||||||
|
function createBaseEach(eachFunc, fromRight) {
|
||||||
|
return function(collection, iteratee) {
|
||||||
|
var length = collection ? collection.length : 0;
|
||||||
|
if (!isLength(length)) {
|
||||||
|
return eachFunc(collection, iteratee);
|
||||||
|
}
|
||||||
|
var index = fromRight ? length : -1,
|
||||||
|
iterable = toObject(collection);
|
||||||
|
|
||||||
|
while ((fromRight ? index-- : ++index < length)) {
|
||||||
|
if (iteratee(iterable[index], index, iterable) === false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return collection;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a base function for `_.forIn` or `_.forInRight`.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
* @returns {Function} Returns the new base function.
|
||||||
|
*/
|
||||||
|
function createBaseFor(fromRight) {
|
||||||
|
return function(object, iteratee, keysFunc) {
|
||||||
|
var iterable = toObject(object),
|
||||||
|
props = keysFunc(object),
|
||||||
|
length = props.length,
|
||||||
|
index = fromRight ? length : -1;
|
||||||
|
|
||||||
|
while ((fromRight ? index-- : ++index < length)) {
|
||||||
|
var key = props[index];
|
||||||
|
if (iteratee(iterable[key], key, iterable) === false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return object;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like length.
|
* Checks if `value` is a valid array-like length.
|
||||||
*
|
*
|
||||||
|
* **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
|
||||||
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
||||||
@@ -77,11 +127,9 @@ function toObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -102,7 +150,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return type == 'function' || (!!value && type == 'object');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseEach;
|
module.exports = baseEach;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseeach",
|
"name": "lodash._baseeach",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseEach` as a module.",
|
"description": "The modern build of lodash’s internal `baseEach` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash._basefor": "^3.0.0",
|
|
||||||
"lodash.keys": "^3.0.0"
|
"lodash.keys": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseeachright v3.0.0
|
# lodash._baseeachright v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEachRight` 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 `baseEachRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseEachRight = require('lodash._baseeachright');
|
var baseEachRight = require('lodash._baseeachright');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseeachright) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseeachright) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -10,9 +10,8 @@ var baseForRight = require('lodash._baseforright'),
|
|||||||
keys = require('lodash.keys');
|
keys = require('lodash.keys');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used as the maximum length of an array-like value.
|
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
||||||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
|
* of an array-like value.
|
||||||
* for more details.
|
|
||||||
*/
|
*/
|
||||||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
||||||
|
|
||||||
@@ -25,19 +24,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
|||||||
* @param {Function} iteratee The function invoked per iteration.
|
* @param {Function} iteratee The function invoked per iteration.
|
||||||
* @returns {Array|Object|string} Returns `collection`.
|
* @returns {Array|Object|string} Returns `collection`.
|
||||||
*/
|
*/
|
||||||
function baseEachRight(collection, iteratee) {
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
||||||
var length = collection ? collection.length : 0;
|
|
||||||
if (!isLength(length)) {
|
|
||||||
return baseForOwnRight(collection, iteratee);
|
|
||||||
}
|
|
||||||
var iterable = toObject(collection);
|
|
||||||
while (length--) {
|
|
||||||
if (iteratee(iterable[length], length, iterable) === false) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return collection;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.forOwnRight` without support for callback
|
* The base implementation of `_.forOwnRight` without support for callback
|
||||||
@@ -52,12 +39,61 @@ function baseForOwnRight(object, iteratee) {
|
|||||||
return baseForRight(object, iteratee, keys);
|
return baseForRight(object, iteratee, keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base implementation of `_.property` without support for deep paths.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {Function} Returns the new function.
|
||||||
|
*/
|
||||||
|
function baseProperty(key) {
|
||||||
|
return function(object) {
|
||||||
|
return object == null ? undefined : object[key];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a `baseEach` or `baseEachRight` function.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} eachFunc The function to iterate over a collection.
|
||||||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
* @returns {Function} Returns the new base function.
|
||||||
|
*/
|
||||||
|
function createBaseEach(eachFunc, fromRight) {
|
||||||
|
return function(collection, iteratee) {
|
||||||
|
var length = collection ? getLength(collection) : 0;
|
||||||
|
if (!isLength(length)) {
|
||||||
|
return eachFunc(collection, iteratee);
|
||||||
|
}
|
||||||
|
var index = fromRight ? length : -1,
|
||||||
|
iterable = toObject(collection);
|
||||||
|
|
||||||
|
while ((fromRight ? index-- : ++index < length)) {
|
||||||
|
if (iteratee(iterable[index], index, iterable) === false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return collection;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the "length" property value of `object`.
|
||||||
|
*
|
||||||
|
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
|
||||||
|
* that affects Safari on at least iOS 8.1-8.3 ARM64.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Object} object The object to query.
|
||||||
|
* @returns {*} Returns the "length" value.
|
||||||
|
*/
|
||||||
|
var getLength = baseProperty('length');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like length.
|
* Checks if `value` is a valid array-like length.
|
||||||
*
|
*
|
||||||
* **Note:** This function is based on ES `ToLength`. See the
|
* **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
|
||||||
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
|
||||||
* for more details.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
@@ -79,11 +115,9 @@ function toObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -104,7 +138,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return type == 'function' || (!!value && type == 'object');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseEachRight;
|
module.exports = baseEachRight;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseeachright",
|
"name": "lodash._baseeachright",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseEachRight` as a module.",
|
"description": "The modern build of lodash’s internal `baseEachRight` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# lodash._basefind v3.0.0
|
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFind` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._basefind
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js/io.js:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var baseFind = require('lodash._basefind');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basefind) for more details.
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of methods like `_.find` and `_.findKey`, without
|
|
||||||
* support for iteratee shorthands, which iterates over `collection` using
|
|
||||||
* `eachFunc`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array|Object} collection The collection to search.
|
|
||||||
* @param {Function} predicate The function invoked per iteration.
|
|
||||||
* @param {Function} eachFunc The function to iterate over `collection`.
|
|
||||||
* @param {boolean} [retKey] Specify returning the key of the found element
|
|
||||||
* instead of the element itself.
|
|
||||||
* @returns {*} Returns the found element or its key, else `undefined`.
|
|
||||||
*/
|
|
||||||
function baseFind(collection, predicate, eachFunc, retKey) {
|
|
||||||
var result;
|
|
||||||
eachFunc(collection, function(value, key, collection) {
|
|
||||||
if (predicate(value, key, collection)) {
|
|
||||||
result = retKey ? key : value;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = baseFind;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._basefind",
|
|
||||||
"version": "3.0.0",
|
|
||||||
"description": "The modern build of lodash’s internal `baseFind` as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)",
|
|
||||||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
|
|
||||||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseflatten v3.0.0
|
# lodash._baseflatten v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFlatten` 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 `baseFlatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseFlatten = require('lodash._baseflatten');
|
var baseFlatten = require('lodash._baseflatten');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseflatten) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseflatten) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -39,7 +39,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
|||||||
* @returns {Array} Returns the new flattened array.
|
* @returns {Array} Returns the new flattened array.
|
||||||
*/
|
*/
|
||||||
function baseFlatten(array, isDeep, isStrict, fromIndex) {
|
function baseFlatten(array, isDeep, isStrict, fromIndex) {
|
||||||
var index = (fromIndex || 0) - 1,
|
var index = fromIndex == null ? -1 : (fromIndex - 1),
|
||||||
length = array.length,
|
length = array.length,
|
||||||
resIndex = -1,
|
resIndex = -1,
|
||||||
result = [];
|
result = [];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseflatten",
|
"name": "lodash._baseflatten",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseFlatten` as a module.",
|
"description": "The modern build of lodash’s internal `baseFlatten` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basefor v3.0.0
|
# lodash._basefor v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFor` 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 `baseFor` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseFor = require('lodash._basefor');
|
var baseFor = require('lodash._basefor');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basefor) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basefor) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
/**
|
/**
|
||||||
* The base implementation of `baseForIn` and `baseForOwn` which iterates
|
* The base implementation of `baseForIn` and `baseForOwn` which iterates
|
||||||
* over `object` properties returned by `keysFunc` invoking `iteratee` for
|
* over `object` properties returned by `keysFunc` invoking `iteratee` for
|
||||||
* each property. Iterator functions may exit iteration early by explicitly
|
* each property. Iteratee functions may exit iteration early by explicitly
|
||||||
* returning `false`.
|
* returning `false`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
@@ -19,23 +19,34 @@
|
|||||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||||
* @returns {Object} Returns `object`.
|
* @returns {Object} Returns `object`.
|
||||||
*/
|
*/
|
||||||
function baseFor(object, iteratee, keysFunc) {
|
var baseFor = createBaseFor();
|
||||||
var index = -1,
|
|
||||||
iterable = toObject(object),
|
|
||||||
props = keysFunc(object),
|
|
||||||
length = props.length;
|
|
||||||
|
|
||||||
while (++index < length) {
|
/**
|
||||||
var key = props[index];
|
* Creates a base function for `_.forIn` or `_.forInRight`.
|
||||||
if (iteratee(iterable[key], key, iterable) === false) {
|
*
|
||||||
break;
|
* @private
|
||||||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
* @returns {Function} Returns the new base function.
|
||||||
|
*/
|
||||||
|
function createBaseFor(fromRight) {
|
||||||
|
return function(object, iteratee, keysFunc) {
|
||||||
|
var iterable = toObject(object),
|
||||||
|
props = keysFunc(object),
|
||||||
|
length = props.length,
|
||||||
|
index = fromRight ? length : -1;
|
||||||
|
|
||||||
|
while ((fromRight ? index-- : ++index < length)) {
|
||||||
|
var key = props[index];
|
||||||
|
if (iteratee(iterable[key], key, iterable) === false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return object;
|
||||||
return object;
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to an object if it is not one.
|
* Converts `value` to an object if it's not one.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to process.
|
* @param {*} value The value to process.
|
||||||
@@ -46,11 +57,9 @@ function toObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -71,7 +80,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return !!value && (type == 'object' || type == 'function');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseFor;
|
module.exports = baseFor;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basefor",
|
"name": "lodash._basefor",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseFor` as a module.",
|
"description": "The modern build of lodash’s internal `baseFor` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseforright v3.0.0
|
# lodash._baseforright v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseForRight` 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 `baseForRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseForRight = require('lodash._baseforright');
|
var baseForRight = require('lodash._baseforright');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseforright) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseforright) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -17,22 +17,34 @@
|
|||||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||||
* @returns {Object} Returns `object`.
|
* @returns {Object} Returns `object`.
|
||||||
*/
|
*/
|
||||||
function baseForRight(object, iteratee, keysFunc) {
|
var baseForRight = createBaseFor(true);
|
||||||
var iterable = toObject(object),
|
|
||||||
props = keysFunc(object),
|
|
||||||
length = props.length;
|
|
||||||
|
|
||||||
while (length--) {
|
/**
|
||||||
var key = props[length];
|
* Creates a base function for `_.forIn` or `_.forInRight`.
|
||||||
if (iteratee(iterable[key], key, iterable) === false) {
|
*
|
||||||
break;
|
* @private
|
||||||
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||||
|
* @returns {Function} Returns the new base function.
|
||||||
|
*/
|
||||||
|
function createBaseFor(fromRight) {
|
||||||
|
return function(object, iteratee, keysFunc) {
|
||||||
|
var iterable = toObject(object),
|
||||||
|
props = keysFunc(object),
|
||||||
|
length = props.length,
|
||||||
|
index = fromRight ? length : -1;
|
||||||
|
|
||||||
|
while ((fromRight ? index-- : ++index < length)) {
|
||||||
|
var key = props[index];
|
||||||
|
if (iteratee(iterable[key], key, iterable) === false) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return object;
|
||||||
return object;
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to an object if it is not one.
|
* Converts `value` to an object if it's not one.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to process.
|
* @param {*} value The value to process.
|
||||||
@@ -43,11 +55,9 @@ function toObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the language type of `Object`.
|
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
|
|
||||||
*
|
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
@@ -68,7 +78,7 @@ function isObject(value) {
|
|||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
// Avoid a V8 JIT bug in Chrome 19-20.
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return type == 'function' || (value && type == 'object') || false;
|
return !!value && (type == 'object' || type == 'function');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseForRight;
|
module.exports = baseForRight;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseforright",
|
"name": "lodash._baseforright",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseForRight` as a module.",
|
"description": "The modern build of lodash’s internal `baseForRight` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseisequal v3.0.0
|
# lodash._baseisequal v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseIsEqual` 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 `baseIsEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseIsEqual = require('lodash._baseisequal');
|
var baseIsEqual = require('lodash._baseisequal');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseisequal) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseisequal) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -21,21 +21,6 @@ var argsTag = '[object Arguments]',
|
|||||||
regexpTag = '[object RegExp]',
|
regexpTag = '[object RegExp]',
|
||||||
stringTag = '[object String]';
|
stringTag = '[object String]';
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `value` to a string if it is not one. An empty string is returned
|
|
||||||
* for `null` or `undefined` values.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to process.
|
|
||||||
* @returns {string} Returns the string.
|
|
||||||
*/
|
|
||||||
function baseToString(value) {
|
|
||||||
if (typeof value == 'string') {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
return value == null ? '' : (value + '');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for native method references. */
|
/** Used for native method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
@@ -244,7 +229,7 @@ function equalByTag(object, other, tag) {
|
|||||||
case stringTag:
|
case stringTag:
|
||||||
// Coerce regexes to strings and treat strings primitives and string
|
// Coerce regexes to strings and treat strings primitives and string
|
||||||
// objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
// objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
||||||
return object == baseToString(other);
|
return object == (other + '');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -304,8 +289,10 @@ function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, sta
|
|||||||
othCtor = other.constructor;
|
othCtor = other.constructor;
|
||||||
|
|
||||||
// Non `Object` object instances with different constructors are not equal.
|
// Non `Object` object instances with different constructors are not equal.
|
||||||
if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&
|
if (objCtor != othCtor &&
|
||||||
!(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
('constructor' in object && 'constructor' in other) &&
|
||||||
|
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
|
||||||
|
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseisequal",
|
"name": "lodash._baseisequal",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseIsEqual` as a module.",
|
"description": "The modern build of lodash’s internal `baseIsEqual` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# lodash._baseproperty v3.0.0
|
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._baseproperty
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js/io.js:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var baseProperty = require('lodash._baseproperty');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseproperty) for more details.
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.property` which does not coerce `key` to a string.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {string} key The key of the property to get.
|
|
||||||
* @returns {Function} Returns the new function.
|
|
||||||
*/
|
|
||||||
function baseProperty(key) {
|
|
||||||
return function(object) {
|
|
||||||
return object == null ? undefined : object[key];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = baseProperty;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._baseproperty",
|
|
||||||
"version": "3.0.0",
|
|
||||||
"description": "The modern build of lodash’s internal `baseProperty` as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)",
|
|
||||||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
|
|
||||||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baserandom v3.0.0
|
# lodash._baserandom v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseRandom` 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 `baseRandom` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseRandom = require('lodash._baserandom');
|
var baseRandom = require('lodash._baserandom');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baserandom) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baserandom) for more details.
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Native method references. */
|
|
||||||
var floor = Math.floor;
|
|
||||||
|
|
||||||
/* Native method references for those with the same name as other `lodash` methods. */
|
/* Native method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeRandom = Math.random;
|
var nativeFloor = Math.floor,
|
||||||
|
nativeRandom = Math.random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.random` without support for argument juggling
|
* The base implementation of `_.random` without support for argument juggling
|
||||||
@@ -23,7 +21,7 @@ var nativeRandom = Math.random;
|
|||||||
* @returns {number} Returns the random number.
|
* @returns {number} Returns the random number.
|
||||||
*/
|
*/
|
||||||
function baseRandom(min, max) {
|
function baseRandom(min, max) {
|
||||||
return min + floor(nativeRandom() * (max - min + 1));
|
return min + nativeFloor(nativeRandom() * (max - min + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = baseRandom;
|
module.exports = baseRandom;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baserandom",
|
"name": "lodash._baserandom",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseRandom` as a module.",
|
"description": "The modern build of lodash’s internal `baseRandom` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
@@ -1,20 +1,18 @@
|
|||||||
# lodash._basereduce v3.0.0
|
# lodash._basereduce v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseReduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
The internal [lodash](https://lodash.com/) function `baseReduce` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Using npm:
|
Using npm:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ {sudo -H} npm i -g npm
|
$ {sudo -H} npm i -g npm
|
||||||
$ npm i --save lodash._basereduce
|
$ npm i --save lodash._basereduce
|
||||||
```
|
```
|
||||||
|
|
||||||
In Node.js/io.js:
|
In Node.js:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var baseReduce = require('lodash._basereduce');
|
var baseReduce = require('lodash._basereduce');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basereduce) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basereduce) for more details.
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.reduce` and `_.reduceRight` without support
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
||||||
* for callback shorthands or `this` binding, which iterates over `collection`
|
* for iteratee shorthands, which iterates over `collection` using `eachFunc`.
|
||||||
* using the provided `eachFunc`.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array|Object|string} collection The collection to iterate over.
|
* @param {Array|Object} collection The collection to iterate over.
|
||||||
* @param {Function} iteratee The function invoked per iteration.
|
* @param {Function} iteratee The function invoked per iteration.
|
||||||
* @param {*} accumulator The initial value.
|
* @param {*} accumulator The initial value.
|
||||||
* @param {boolean} initFromCollection Specify using the first or last element
|
* @param {boolean} initAccum Specify using the first or last element of
|
||||||
* of `collection` as the initial value.
|
* `collection` as the initial value.
|
||||||
* @param {Function} eachFunc The function to iterate over `collection`.
|
* @param {Function} eachFunc The function to iterate over `collection`.
|
||||||
* @returns {*} Returns the accumulated value.
|
* @returns {*} Returns the accumulated value.
|
||||||
*/
|
*/
|
||||||
function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
||||||
eachFunc(collection, function(value, index, collection) {
|
eachFunc(collection, function(value, index, collection) {
|
||||||
accumulator = initFromCollection
|
accumulator = initAccum
|
||||||
? (initFromCollection = false, value)
|
? (initAccum = false, value)
|
||||||
: iteratee(accumulator, value, index, collection)
|
: iteratee(accumulator, value, index, collection);
|
||||||
});
|
});
|
||||||
return accumulator;
|
return accumulator;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._basereduce",
|
"name": "lodash._basereduce",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseReduce` as a module.",
|
"description": "The internal lodash function `baseReduce` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
||||||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)",
|
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)",
|
||||||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
|
|
||||||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._baseslice v3.0.0
|
# lodash._baseslice v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseSlice` 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 `baseSlice` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseSlice = require('lodash._baseslice');
|
var baseSlice = require('lodash._baseslice');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseslice) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseslice) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -28,7 +28,8 @@ function baseSlice(array, start, end) {
|
|||||||
if (end < 0) {
|
if (end < 0) {
|
||||||
end += length;
|
end += length;
|
||||||
}
|
}
|
||||||
length = start > end ? 0 : (end - start);
|
length = start > end ? 0 : ((end - start) >>> 0);
|
||||||
|
start >>>= 0;
|
||||||
|
|
||||||
var result = Array(length);
|
var result = Array(length);
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseslice",
|
"name": "lodash._baseslice",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseSlice` as a module.",
|
"description": "The modern build of lodash’s internal `baseSlice` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._basetostring v3.0.0
|
# lodash._basetostring v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseToString` 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 `baseToString` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseToString = require('lodash._basetostring');
|
var baseToString = require('lodash._basetostring');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basetostring) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basetostring) for more details.
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to a string if it is not one. An empty string is returned
|
* Converts `value` to a string if it's not one. An empty string is returned
|
||||||
* for `null` or `undefined` values.
|
* for `null` or `undefined` values.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
@@ -16,9 +16,6 @@
|
|||||||
* @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._basetostring",
|
"name": "lodash._basetostring",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `baseToString` as a module.",
|
"description": "The modern build of lodash’s internal `baseToString` 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._baseuniq v3.0.0
|
# lodash._baseuniq v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseUniq` 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 `baseUniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var baseUniq = require('lodash._baseuniq');
|
var baseUniq = require('lodash._baseuniq');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseuniq) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseuniq) for more details.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
@@ -25,7 +25,7 @@ function baseUniq(array, iteratee) {
|
|||||||
length = array.length,
|
length = array.length,
|
||||||
isCommon = true,
|
isCommon = true,
|
||||||
isLarge = isCommon && length >= 200,
|
isLarge = isCommon && length >= 200,
|
||||||
seen = isLarge && createCache(),
|
seen = isLarge ? createCache() : null,
|
||||||
result = [];
|
result = [];
|
||||||
|
|
||||||
if (seen) {
|
if (seen) {
|
||||||
@@ -52,7 +52,7 @@ function baseUniq(array, iteratee) {
|
|||||||
}
|
}
|
||||||
result.push(value);
|
result.push(value);
|
||||||
}
|
}
|
||||||
else if (indexOf(seen, computed) < 0) {
|
else if (indexOf(seen, computed, 0) < 0) {
|
||||||
if (iteratee || isLarge) {
|
if (iteratee || isLarge) {
|
||||||
seen.push(computed);
|
seen.push(computed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._baseuniq",
|
"name": "lodash._baseuniq",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `baseUniq` as a module.",
|
"description": "The modern build of lodash’s internal `baseUniq` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._binaryindex v3.0.0
|
# lodash._binaryindex v3.0.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `binaryIndex` 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 `binaryIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var binaryIndex = require('lodash._binaryindex');
|
var binaryIndex = require('lodash._binaryindex');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._binaryindex) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._binaryindex) for more details.
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
var binaryIndexBy = require('lodash._binaryindexby');
|
var binaryIndexBy = require('lodash._binaryindexby');
|
||||||
|
|
||||||
/** Used as references for the maximum length and index of an array. */
|
/** Used as references for the maximum length and index of an array. */
|
||||||
var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1,
|
var MAX_ARRAY_LENGTH = 4294967295,
|
||||||
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
|
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,7 +32,7 @@ function binaryIndex(array, value, retHighest) {
|
|||||||
var mid = (low + high) >>> 1,
|
var mid = (low + high) >>> 1,
|
||||||
computed = array[mid];
|
computed = array[mid];
|
||||||
|
|
||||||
if (retHighest ? (computed <= value) : (computed < value)) {
|
if ((retHighest ? (computed <= value) : (computed < value)) && computed !== null) {
|
||||||
low = mid + 1;
|
low = mid + 1;
|
||||||
} else {
|
} else {
|
||||||
high = mid;
|
high = mid;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._binaryindex",
|
"name": "lodash._binaryindex",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "The modern build of lodash’s internal `binaryIndex` as a module.",
|
"description": "The modern build of lodash’s internal `binaryIndex` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._binaryindexby v3.0.0
|
# lodash._binaryindexby v3.0.2
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `binaryIndexBy` 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 `binaryIndexBy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||||
|
|
||||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
|||||||
var binaryIndexBy = require('lodash._binaryindexby');
|
var binaryIndexBy = require('lodash._binaryindexby');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._binaryindexby) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._binaryindexby) for more details.
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
* Available under MIT license <https://lodash.com/license>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Native method references. */
|
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var floor = Math.floor;
|
var floor = Math.floor;
|
||||||
|
|
||||||
@@ -16,8 +14,8 @@ var floor = Math.floor;
|
|||||||
var nativeMin = Math.min;
|
var nativeMin = Math.min;
|
||||||
|
|
||||||
/** Used as references for the maximum length and index of an array. */
|
/** Used as references for the maximum length and index of an array. */
|
||||||
var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1,
|
var MAX_ARRAY_LENGTH = 4294967295,
|
||||||
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
|
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is like `binaryIndex` except that it invokes `iteratee` for
|
* This function is like `binaryIndex` except that it invokes `iteratee` for
|
||||||
@@ -38,17 +36,23 @@ function binaryIndexBy(array, value, iteratee, retHighest) {
|
|||||||
var low = 0,
|
var low = 0,
|
||||||
high = array ? array.length : 0,
|
high = array ? array.length : 0,
|
||||||
valIsNaN = value !== value,
|
valIsNaN = value !== value,
|
||||||
valIsUndef = typeof value == 'undefined';
|
valIsNull = value === null,
|
||||||
|
valIsUndef = value === undefined;
|
||||||
|
|
||||||
while (low < high) {
|
while (low < high) {
|
||||||
var mid = floor((low + high) / 2),
|
var mid = floor((low + high) / 2),
|
||||||
computed = iteratee(array[mid]),
|
computed = iteratee(array[mid]),
|
||||||
|
isDef = computed !== undefined,
|
||||||
isReflexive = computed === computed;
|
isReflexive = computed === computed;
|
||||||
|
|
||||||
if (valIsNaN) {
|
if (valIsNaN) {
|
||||||
var setLow = isReflexive || retHighest;
|
var setLow = isReflexive || retHighest;
|
||||||
|
} else if (valIsNull) {
|
||||||
|
setLow = isReflexive && isDef && (retHighest || computed != null);
|
||||||
} else if (valIsUndef) {
|
} else if (valIsUndef) {
|
||||||
setLow = isReflexive && (retHighest || typeof computed != 'undefined');
|
setLow = isReflexive && (retHighest || isDef);
|
||||||
|
} else if (computed == null) {
|
||||||
|
setLow = false;
|
||||||
} else {
|
} else {
|
||||||
setLow = retHighest ? (computed <= value) : (computed < value);
|
setLow = retHighest ? (computed <= value) : (computed < value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._binaryindexby",
|
"name": "lodash._binaryindexby",
|
||||||
"version": "3.0.0",
|
"version": "3.0.2",
|
||||||
"description": "The modern build of lodash’s internal `binaryIndexBy` as a module.",
|
"description": "The modern build of lodash’s internal `binaryIndexBy` as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user