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

Function compose

ch11-code/fp-helpers.js:99–105  ·  view source on GitHub ↗
(...fns)

Source from the content-addressed store, hash-verified

97}
98
99function compose(...fns) {
100 return fns.reduceRight( function reducer(fn1,fn2){
101 return function composed(...args){
102 return fn2( fn1( ...args ) );
103 };
104 } );
105}
106
107function prop(name,obj) {
108 return obj[name];

Callers 1

updateStockElemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected