mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix order of arguments in FP docs. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
21f9cfa6d3
commit
c88c7ff6bb
@@ -18,9 +18,11 @@ var templateData = {
|
||||
};
|
||||
|
||||
function toArgOrder(array) {
|
||||
return '`(' + _.map(array, function(value) {
|
||||
return argNames[value];
|
||||
}).join(', ') + ')`';
|
||||
var reordered = [];
|
||||
_.each(array, function(newIndex, index) {
|
||||
reordered[newIndex] = argNames[index];
|
||||
});
|
||||
return '`(' + reordered.join(', ') + ')`';
|
||||
}
|
||||
|
||||
function toFuncList(array) {
|
||||
|
||||
Reference in New Issue
Block a user