@nevware21/ts-utils
    Preparing search index...

    Function polyArrFill

    • Function

      Polyfill implementation of Array.fill() for environments that don't support it.

      Type Parameters

      • T

        Identifies the type of array elements

      Parameters

      • theArray: WritableArrayLike<T>

        The array to fill

      • value: T

        Value to fill the array with

      • Optionalstart: number

        Start index (inclusive), defaults to 0

      • Optionalend: number

        End index (exclusive), defaults to array.length

      Returns WritableArrayLike<T>

      The modified array, like the native function a primitive value is converted to an object (eg. a number returns its Number object, and filling a string throws a TypeError as its characters are read-only)

      0.14.0

      TypeError if theArray is null or undefined