• Returns every nth element in an array

    Example

    everyNth([1, 2, 3, 4, 5, 6], 2); // [ 2, 4, 6 ]
    

    Type Parameters

    • T

    Parameters

    • array: T[]
    • n: number

    Returns T[]

Generated using TypeDoc