From fc5e66a141d51d11e9c8815abcb4a7a3338b1bb4 Mon Sep 17 00:00:00 2001 From: taltmann42 Date: Fri, 15 Dec 2017 00:30:18 +0100 Subject: [PATCH] Delete array-without.md --- snippets/array-without.md | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 snippets/array-without.md diff --git a/snippets/array-without.md b/snippets/array-without.md deleted file mode 100644 index 353d1308e..000000000 --- a/snippets/array-without.md +++ /dev/null @@ -1,9 +0,0 @@ -### Array without - -Filters out array elements if they are included in the given `values` arguments - -```js -const without = ((arr, ...values) => arr.filter(x => !values.includes(x))) - -//without([2, 1, 2, 3], 1, 2); -> [3] -```