API Reference

Returns an array of every Nth item in an array

function everyNth(arr: any[], n: number)

// Example:

everyNth([1, 2, 3, 4, 5, 6, 7, 8, 9], 3) //=> [3, 6, 9]