From 04ddaf49f50ac9ff28b94a109eaf562ead4041fc Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 20 Mar 2016 11:13:24 -0700 Subject: [PATCH] Organize aliases. --- fp/_mapping.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/fp/_mapping.js b/fp/_mapping.js index 4f9ca560d..32f6f684d 100644 --- a/fp/_mapping.js +++ b/fp/_mapping.js @@ -1,5 +1,17 @@ /** Used to map aliases to their real names. */ exports.aliasToReal = { + + // Lodash aliases. + 'each': 'forEach', + 'eachRight': 'forEachRight', + 'entries': 'toPairs', + 'entriesIn': 'toPairsIn', + 'extend': 'assignIn', + 'extendWith': 'assignInWith', + 'first': 'head', + 'without': 'difference', + + // Ramda aliases. '__': 'placeholder', 'all': 'every', 'allPass': 'overEvery', @@ -12,14 +24,7 @@ exports.aliasToReal = { 'contains': 'includes', 'dissoc': 'unset', 'dissocPath': 'unset', - 'each': 'forEach', - 'eachRight': 'forEachRight', - 'entries': 'toPairs', - 'entriesIn': 'toPairsIn', 'equals': 'isEqual', - 'extend': 'assignIn', - 'extendWith': 'assignInWith', - 'first': 'head', 'identical': 'eq', 'init': 'initial', 'mapObj': 'mapValues', @@ -37,7 +42,6 @@ exports.aliasToReal = { 'unnest': 'flatten', 'useWith': 'overArgs', 'whereEq': 'filter', - 'without': 'difference', 'zipObj': 'zipObject' };