Fix order of arguments in FP docs. [ci skip]

This commit is contained in:
Jeroen Engels
2016-02-23 22:37:00 +01:00
committed by John-David Dalton
parent 21f9cfa6d3
commit c88c7ff6bb

View File

@@ -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) {