const all = (arr, fn = Boolean) => arr.every(fn);
i.e.
all([4, 2, 3], x => x > 1); // true all([1, 2, 3]); // true
등록된 댓글이 없습니다.
코리아뉴스 2001 - , All right reserved. 더보기