SOURCE

const all = (arr,fn = Boolean) => arr.every(fn)

all([4,2,3],x=>x>1)//true

all([4,2,3])//true
console 命令行工具 X clear

                    
>
console