mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup lodash and lodash.underscore builds.
This commit is contained in:
10
dist/lodash.underscore.js
vendored
10
dist/lodash.underscore.js
vendored
@@ -2496,7 +2496,7 @@
|
||||
* @type Function
|
||||
* @category Collections
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {string} property The name of the property to pluck.
|
||||
* @param {string} prop The name of the property to pluck.
|
||||
* @returns {Array} Returns a new array of property values.
|
||||
* @example
|
||||
*
|
||||
@@ -2541,12 +2541,11 @@
|
||||
* // => { 'a': 3, 'b': 6, 'c': 9 }
|
||||
*/
|
||||
function reduce(collection, callback, accumulator, thisArg) {
|
||||
if (!collection) return accumulator;
|
||||
var noaccum = arguments.length < 3;
|
||||
callback = createCallback(callback, thisArg, 4);
|
||||
|
||||
var index = -1,
|
||||
length = collection.length;
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
if (noaccum) {
|
||||
@@ -4301,8 +4300,9 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a "_.where" style function, which returns `true` for a given object
|
||||
* if it has the equivalent property values of the `props` object, else `false`.
|
||||
* Creates a "_.where" style function, which performs a deep comparison
|
||||
* between a given object and the `props` object, returning `true` if the
|
||||
* given object has equivalent property values, else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user