Vanilla JS. ES2016: const found = arr1.some(r=> arr2.includes(r)). ES6: · How it works. some(..) checks each element of the array against a test function and ...
確定! 回上一頁