Consistent wording

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-01 20:50:57 +02:00
parent ef40a60a50
commit 0ba944aa66
18 changed files with 21 additions and 18 deletions

View File

@ -6,6 +6,7 @@ tags: array,beginner
Creates a new array with `n` elements removed from the left.
- Use `Array.prototype.slice()` to remove the specified number of elements from the left.
- Omit the last argument, `n`, to use a default value of `1`.
```js
const drop = (arr, n = 1) => arr.slice(n);