JavaScript30秒, 从入门到放弃之Array(七)

Filters out the elements of an array, that have one of the specified values. Use Array.filter() to create an array excluding(using !Array.includes() ) all given values. const without = (arr, ...args) => arr.filter(v => !args.includes(v)); 剔除掉数组中所有存在于所...