diff --git a/README.md b/README.md index 357c4b642..123ea24f1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ ## Table of Contents ### Array -* [Array concatenation](#array-concatenation) * [Array difference](#array-difference) * [Array intersection](#array-intersection) * [Array remove](#array-remove) @@ -133,17 +132,6 @@ ## Array -### Array concatenation - -Use Array spread operators (`...`) to concatenate an array with any additional arrays and/or values, specified in `args`. - -```js -const ArrayConcat = (arr, ...args) => [...arr,...args]; -// ArrayConcat([1], [1, 2, 3, [4]]) -> [1, 1, 2, 3, [4]] -``` - -[⬆ back to top](#table-of-contents) - ### Array difference Create a `Set` from `b`, then use `Array.filter()` on `a` to only keep values not contained in `b`. diff --git a/snippets/array-concatenation.md b/snippets/array-concatenation.md deleted file mode 100644 index 4c337c9e9..000000000 --- a/snippets/array-concatenation.md +++ /dev/null @@ -1,8 +0,0 @@ -### Array concatenation - -Use Array spread operators (`...`) to concatenate an array with any additional arrays and/or values, specified in `args`. - -```js -const ArrayConcat = (arr, ...args) => [...arr,...args]; -// ArrayConcat([1], [1, 2, 3, [4]]) -> [1, 1, 2, 3, [4]] -``` diff --git a/tag_database b/tag_database index 8181032df..ac64d168d 100644 --- a/tag_database +++ b/tag_database @@ -1,6 +1,5 @@ 3-digit-hexcode-to-6-digit-hexcode:utility anagrams-of-string-(with-duplicates):string -array-concatenation:array array-difference:array array-intersection:array array-remove:array