• Fills elements of array with value from start up to, but not including, end.

    Note: This method mutates array.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | any[]

      The array to fill.

    • value: T

      The value to fill array with.

    Returns T[]

    Returns array.

  • Type Parameters

    • T

    Parameters

    • array: undefined | null | List<any>
    • value: T

    Returns List<T>

    _.fill

  • Type Parameters

    • T
    • U

    Parameters

    • array: undefined | null | U[]
    • value: T
    • Optionalstart: number
    • Optionalend: number

    Returns (T | U)[]

    _.fill

  • Type Parameters

    • T
    • U

    Parameters

    • array: undefined | null | List<U>
    • value: T
    • Optionalstart: number
    • Optionalend: number

    Returns List<T | U>

    _.fill