const includesAll = (big, small) => small.every(s => big.includes(s))
includesAll([1, 2, 3, 4], [1, 4]) // true includesAll([1, 2, 3, 4], [1, 5]) // false
posted on 2022-09-07 09:22 小馬過河﹎ 阅读(7) 评论(0) 收藏 举报