This commit is contained in:
Marcel Michau
2017-12-14 18:10:03 +02:00
7 changed files with 1089 additions and 64 deletions

View File

@ -4,7 +4,6 @@ Use `Array.slice()` to create a slice of the array with `n` elements taken from
```js
const take = (arr, n = 1) => arr.slice(0, n);
// take([1, 2, 3], 5) -> [1, 2, 3]
// take([1, 2, 3], 0) -> []
```