mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Organize aliases.
This commit is contained in:
@@ -1,5 +1,17 @@
|
|||||||
/** Used to map aliases to their real names. */
|
/** Used to map aliases to their real names. */
|
||||||
exports.aliasToReal = {
|
exports.aliasToReal = {
|
||||||
|
|
||||||
|
// Lodash aliases.
|
||||||
|
'each': 'forEach',
|
||||||
|
'eachRight': 'forEachRight',
|
||||||
|
'entries': 'toPairs',
|
||||||
|
'entriesIn': 'toPairsIn',
|
||||||
|
'extend': 'assignIn',
|
||||||
|
'extendWith': 'assignInWith',
|
||||||
|
'first': 'head',
|
||||||
|
'without': 'difference',
|
||||||
|
|
||||||
|
// Ramda aliases.
|
||||||
'__': 'placeholder',
|
'__': 'placeholder',
|
||||||
'all': 'every',
|
'all': 'every',
|
||||||
'allPass': 'overEvery',
|
'allPass': 'overEvery',
|
||||||
@@ -12,14 +24,7 @@ exports.aliasToReal = {
|
|||||||
'contains': 'includes',
|
'contains': 'includes',
|
||||||
'dissoc': 'unset',
|
'dissoc': 'unset',
|
||||||
'dissocPath': 'unset',
|
'dissocPath': 'unset',
|
||||||
'each': 'forEach',
|
|
||||||
'eachRight': 'forEachRight',
|
|
||||||
'entries': 'toPairs',
|
|
||||||
'entriesIn': 'toPairsIn',
|
|
||||||
'equals': 'isEqual',
|
'equals': 'isEqual',
|
||||||
'extend': 'assignIn',
|
|
||||||
'extendWith': 'assignInWith',
|
|
||||||
'first': 'head',
|
|
||||||
'identical': 'eq',
|
'identical': 'eq',
|
||||||
'init': 'initial',
|
'init': 'initial',
|
||||||
'mapObj': 'mapValues',
|
'mapObj': 'mapValues',
|
||||||
@@ -37,7 +42,6 @@ exports.aliasToReal = {
|
|||||||
'unnest': 'flatten',
|
'unnest': 'flatten',
|
||||||
'useWith': 'overArgs',
|
'useWith': 'overArgs',
|
||||||
'whereEq': 'filter',
|
'whereEq': 'filter',
|
||||||
'without': 'difference',
|
|
||||||
'zipObj': 'zipObject'
|
'zipObj': 'zipObject'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user