Composition icon indicating copy to clipboard operation
Composition copied to clipboard

Function 'compose' applies functions to array of arguments instead of apply to every argument in array

Open mozolevsky opened this issue 5 years ago • 0 comments

File 4-multiple.js, line 3-4 could you use this tiny enhancement const compose = (...fns) => (...args) => fns.reduce((args, fn) => args.map(v => fn(v)), args)

mozolevsky avatar Mar 08 '19 08:03 mozolevsky