Skip to content

Commit

Permalink
Update src/array/without.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 authored Jul 3, 2024
1 parent 32cfc65 commit 85a0ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/without.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
*/
export function without<T>(array: readonly T[], ...values: T[]): T[] {
const valuesSet = new Set(values);
return Array.prototype.filter.call(array, item => !valuesSet.has(item));
return array.filter(item => !valuesSet.has(item));
}

0 comments on commit 85a0ed6

Please sign in to comment.