Update README.md

This commit is contained in:
Angelos Chalaris
2017-12-14 11:51:24 +02:00
committed by GitHub
parent fbe304288f
commit d2302c083c

View File

@ -746,7 +746,7 @@ const tail = arr => arr.length > 1 ? arr.slice(1) : arr;
### Take
Use `.slice()` to create a slice of the array with n elements taken from the beginning.
Use `Array.slice()` to create a slice of the array with `n` elements taken from the beginning.
```js
const take = (arr, n = 1) => arr.slice(0, n);