JavaScript
const includesAll = (big, small) => small.every(s => big.includes(s))
Examples
includesAll([1, 2, 3, 4], [1, 4]) // true
includesAll([1, 2, 3, 4], [1, 5]) // false
标签:检查,big,子集,数组,includesAll,small
From: https://www.cnblogs.com/sunr/p/16664143.html