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