mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Rename mapping rekey to rename.
This commit is contained in:
@@ -211,7 +211,7 @@ function baseConvert(util, name, func) {
|
||||
var pairs = [];
|
||||
each(mapping.caps, function(cap) {
|
||||
each(mapping.aryMethod[cap], function(key) {
|
||||
var func = _[mapping.rekey[key] || key];
|
||||
var func = _[mapping.rename[key] || key];
|
||||
if (func) {
|
||||
pairs.push([key, wrap(key, func)]);
|
||||
}
|
||||
|
||||
@@ -208,8 +208,8 @@ exports.realToAlias = (function() {
|
||||
return result;
|
||||
}());
|
||||
|
||||
/** Used to map keys to other keys. */
|
||||
exports.rekey = {
|
||||
/** Used to map method names to other names. */
|
||||
exports.rename = {
|
||||
'curryN': 'curry',
|
||||
'curryRightN': 'curryRight',
|
||||
'getOr': 'get'
|
||||
|
||||
Reference in New Issue
Block a user