PK

ADDRLIN : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/docs/api/
FLL :
Current File : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/docs/api/nth.md

# `nth()`

The nth method creates a new collection consisting of every n-th element:

```js
const collection = collect(['a', 'b', 'c', 'd', 'e', 'f']);

const nth = collection.nth(4);

nth.all();

// ['a', 'e']
```

[View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/nth.js)


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home