Underscore.js 1.2.3

This commit is contained in:
Jeremy Ashkenas
2011-12-07 10:12:08 -05:00
parent 770f0876b3
commit 813bb57bf0
6 changed files with 86 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
// Underscore.js 1.2.2
// (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore.js 1.2.3
// (c) 2009-2011 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the MIT license.
// Portions of Underscore are inspired or borrowed from Prototype,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
@@ -68,7 +68,7 @@
}
// Current version.
_.VERSION = '1.2.2';
_.VERSION = '1.2.3';
// Collection Functions
// --------------------
@@ -412,14 +412,6 @@
return _.filter(array, function(value){ return !_.include(rest, value); });
};
// Take the symmetric difference between a list of arrays. Only the elements
// present in one of the input arrays will remain.
_.symDifference = function() {
return _.reduce(arguments, function(memo, array) {
return _.union(_.difference(memo, array), _.difference(array, memo));
});
};
// Zip together multiple lists into a single array -- elements that share
// an index go together.
_.zip = function() {