Update take.md

This commit is contained in:
Angelos Chalaris
2017-12-14 11:50:52 +02:00
committed by GitHub
parent 236616efea
commit db28e1ee28

View File

@ -1,6 +1,6 @@
### 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);