• Initializes and fills an array with the specified value

    Example

    repeat(5, 2); // [2,2,2,2,2]
    

    Type Parameters

    • T = 0

    Parameters

    • n: number
    • Optional value: T = ...

    Returns T[]

Generated using TypeDoc