$ cnpm install reverse-arguments
Reverse the arguments passed to the function.
npm install reverse-arguments
var reverse = require('reverse-arguments');
function join() {
return Array.prototype.slice.call(arguments).join(',');
}
join(1, 2, 3); // => '1,2,3'
reverse(join)(1, 2, 3); // => '3,2,1'
Copyright 2013 - present © cnpmjs.org | Home |