Rename _.object to _.zipObject and make _.object an alias of _.zipObject.

Former-commit-id: 7ae3c9d8be32b1430945ffeafc20c740f1d7f409
This commit is contained in:
John-David Dalton
2013-03-02 20:48:04 -08:00
parent 510c41440a
commit 1522d3385d
11 changed files with 315 additions and 292 deletions

View File

@@ -60,6 +60,7 @@
'include': 'contains',
'inject': 'reduce',
'methods': 'functions',
'object': 'zipObject',
'select': 'filter',
'tail': 'rest',
'take': 'first',
@@ -81,7 +82,8 @@
'reduceRight': ['foldr'],
'rest': ['drop', 'tail'],
'some': ['any'],
'uniq': ['unique']
'uniq': ['unique'],
'zipObject': ['object']
};
/** List of all Lo-Dash methods */
@@ -113,7 +115,8 @@
'uniq',
'unique',
'without',
'zip'
'zip',
'zipObject'
];
/** List of "Chaining" category methods */
@@ -935,7 +938,8 @@
'merge',
'parseInt',
'partialRight',
'runInContext'
'runInContext',
'zipObject'
], function(methodName) {
equal(lodash[methodName], undefined, '_.' + methodName + ' should not exist: ' + basename);
});