mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +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) {
|
function toArgOrder(array) {
|
||||||
return '`(' + _.map(array, function(value) {
|
var reordered = [];
|
||||||
return argNames[value];
|
_.each(array, function(newIndex, index) {
|
||||||
}).join(', ') + ')`';
|
reordered[newIndex] = argNames[index];
|
||||||
|
});
|
||||||
|
return '`(' + reordered.join(', ') + ')`';
|
||||||
}
|
}
|
||||||
|
|
||||||
function toFuncList(array) {
|
function toFuncList(array) {
|
||||||
|
|||||||
Reference in New Issue
Block a user