const spreadOver = fn => argsArr => fn(...argsArr);
i.e.
const arrayMax = spreadOver(Math.max); arrayMax([1, 2, 3]); // 3
등록된 댓글이 없습니다.
코리아뉴스 2001 - , All right reserved. 더보기