Cleanup lodash and lodash.underscore builds.

This commit is contained in:
John-David Dalton
2013-12-23 17:29:51 -06:00
parent c737ab764e
commit b338e76649
5 changed files with 50 additions and 49 deletions

View File

@@ -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 _