const over = (...fns) => (...args) => fns.map(fn => fn.apply(null, args));
i.e.
const minMax = over(Math.min, Math.max); minMax(1, 2, 3, 4, 5); // [1,5]
등록된 댓글이 없습니다.
코리아뉴스 2001 - , All right reserved. 더보기