diff --git a/snippets/drop.md b/snippets/drop.md index 4317d53f2..0e4b31d1e 100644 --- a/snippets/drop.md +++ b/snippets/drop.md @@ -2,7 +2,7 @@ Returns a new array with `n` elements removed from the left. -Use `Array.prototype.slice()` to slice the remove the specified number of elements from the left. +Use `Array.prototype.slice()` to remove the specified number of elements from the left. ```js const drop = (arr, n = 1) => arr.slice(n); diff --git a/snippets/dropRight.md b/snippets/dropRight.md index 1625c7614..83b3a4c20 100644 --- a/snippets/dropRight.md +++ b/snippets/dropRight.md @@ -2,7 +2,7 @@ Returns a new array with `n` elements removed from the right. -Use `Array.prototype.slice()` to slice the remove the specified number of elements from the right. +Use `Array.prototype.slice()` to remove the specified number of elements from the right. ```js const dropRight = (arr, n = 1) => arr.slice(0, -n);