diff --git a/snippets/join.md b/snippets/join.md index e8d941bb7..ac1010c9a 100644 --- a/snippets/join.md +++ b/snippets/join.md @@ -15,7 +15,6 @@ Uses a separator and an end separator. - Omit the third argument, `end`, to use the same value as `separator` by default. ```js - const join = (arr, separator = ',', end = separator) => arr.reduce( (acc, val, i) => diff --git a/snippets/remove.md b/snippets/remove.md index f1490e266..0a4ff011b 100644 --- a/snippets/remove.md +++ b/snippets/remove.md @@ -14,7 +14,6 @@ Mutates an array by removing elements for which the given function returns `fals - The callback function is invoked with three arguments (value, index, array). ```js - const remove = (arr, func) => Array.isArray(arr) ? arr.filter(func).reduce((acc, val) => { diff --git a/snippets/size.md b/snippets/size.md index 361a5e5ce..e850e43a1 100644 --- a/snippets/size.md +++ b/snippets/size.md @@ -16,7 +16,6 @@ Gets the size of an array, object or string. - Split strings into array of characters with `String.prototype.split()` and return its length. ```js - const size = val => Array.isArray(val) ? val.length