Ребята, такой вопрос, могу ли я сделать compose для атомарных функций на js? например
'use strict';
let pipe0 = (x1, x2) => [x1 + 1, x2 + 3, x1 + x2]
let pipe1 = (x1, x2, x3) => (x1 + x2 + x3)
const compose = (f1, f2) => (...args) => f2(f1(...args)); // не работает т.к [] + arg2 + arg3 => '...,undefined,undefined'
let piped = compose(pipe0, pipe1)