Make _.unzip and alias of _.zip.

Former-commit-id: fca00001ad850c250f9883572c4dce7b41dde88d
This commit is contained in:
John-David Dalton
2013-07-07 15:11:19 -07:00
parent 09d560888e
commit d2fffe5b88
4 changed files with 77 additions and 102 deletions

View File

@@ -55,7 +55,8 @@
'select': 'filter',
'tail': 'rest',
'take': 'first',
'unique': 'uniq'
'unique': 'uniq',
'unzip': 'zip'
};
/** Used to associate real names with their aliases */
@@ -74,6 +75,7 @@
'rest': ['drop', 'tail'],
'some': ['any'],
'uniq': ['unique'],
'zip': ['unzip'],
'zipObject': ['object']
};
@@ -179,13 +181,12 @@
'union': ['basicFlatten', 'basicUniq'],
'uniq': ['basicUniq', 'overloadWrapper'],
'uniqueId': [],
'unzip': ['max', 'pluck'],
'value': ['basicEach', 'forOwn', 'isArray', 'lodash', 'wrapperValueOf', 'lodashWrapper'],
'values': ['keys'],
'where': ['filter'],
'without': ['difference'],
'wrap': [],
'zip': ['unzip'],
'zip': ['max', 'pluck'],
'zipObject': [],
// private functions
@@ -282,7 +283,6 @@
'sortedIndex',
'union',
'uniq',
'unzip',
'without',
'zip',
'zipObject'