Rebuild dist.

This commit is contained in:
John-David Dalton
2014-04-12 17:35:18 -07:00
parent f1008b1abf
commit 4be0969098
6 changed files with 144 additions and 200 deletions

25
dist/lodash.js vendored
View File

@@ -444,16 +444,6 @@
return '\\' + stringEscapes[chr];
}
/**
* Used by `_.partition` to create partitioned arrays.
*
* @private
* @returns {Array} Returns the new array.
*/
function partitionInitializer() {
return [[], []];
}
/**
* A fallback implementation of `String#trim` to remove leading and trailing
* whitespace or specified characters from `string`.
@@ -3516,23 +3506,14 @@
function contains(collection, target, fromIndex) {
var length = collection ? collection.length : 0;
if (!(typeof length == 'number' && length > -1 && length <= maxSafeInteger)) {
var props = keys(collection);
length = props.length;
collection = values(collection);
length = collection.length;
}
if (typeof fromIndex == 'number') {
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0);
} else {
fromIndex = 0;
}
if (props) {
while (fromIndex < length) {
var value = collection[props[fromIndex++]];
if (value === target) {
return true;
}
}
return false;
}
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
if (fromIndex >= length) {
return false;
@@ -4222,7 +4203,7 @@
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, partitionInitializer);
}, function() { return [[], []]; });
/**
* Retrieves the value of a specified property from all elements in the collection.