Skip to content

Commit

Permalink
Rebuild dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Apr 13, 2014
1 parent 454ebaf commit ba73503
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 200 deletions.
25 changes: 3 additions & 22 deletions dist/lodash.compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,6 @@
return typeof value.toString != 'function' && typeof (value + '') == 'string';
}

/**
* 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`.
Expand Down Expand Up @@ -3701,23 +3691,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;
Expand Down Expand Up @@ -4398,7 +4379,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.
Expand Down
Loading

0 comments on commit ba73503

Please sign in to comment.