MCPcopy
hub / github.com/getify/Functional-Light-JS / reverseArgs

Function reverseArgs

ch11-code/fp-helpers.js:36–40  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

34}
35
36function reverseArgs(fn) {
37 return function argsReversed(...args){
38 return fn( ...args.reverse() );
39 };
40}
41
42function spreadArgs(fn) {
43 return function spreadFn(argsArr){

Callers 2

fp-helpers.jsFile · 0.85
updateStockElemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected