• Returns all indices of value in the array. If value never occurs, returns []

    Example

    indexOfAll([1, 2, 3, 1, 2, 3], 1); // [0,3]
    

    Example

    indexOfAll([1, 2, 3], 4); // []
    

    Type Parameters

    • T

    Parameters

    • array: T[]
    • value: T

    Returns number[]

Generated using TypeDoc