Add _.zipObject.

Former-commit-id: 0fe17adc359fbc608025dced32f6dd509d019413
This commit is contained in:
John-David Dalton
2012-06-29 20:41:12 -04:00
parent 1228639103
commit 4cf2e83418
6 changed files with 132 additions and 63 deletions

View File

@@ -754,6 +754,16 @@
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.zipObject');
(function() {
test('supports not passing a `values` argument', function() {
deepEqual(_.zipObject(['a', 'b', 'c']), { 'a': undefined, 'b': undefined, 'c': undefined });
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash(...).shift');
(function() {
@@ -807,7 +817,8 @@
'union',
'uniq',
'without',
'zip'
'zip',
'zipObject'
], function(methodName) {
var pass = true;
try {