kaven-basic - v6.0.0
    Preparing search index...

    Function CreateArray

    • Creates a new array of the specified length, filled with the provided value.

      Type Parameters

      • T

      Parameters

      • length: number

        The number of elements in the resulting array.

      • value: T

        The value to fill each element of the array with.

      Returns T[]

      An array of the specified length, filled with the given value.

      1.0.5

      2025-07-02

    • Creates an array of the specified length, initializing each element with the provided initial value and an optional initialization function.

      Type Parameters

      • T

      Parameters

      • length: number

        The number of elements in the array to create.

      • initialValue: T

        The initial value to assign to each element.

      • initFunction: TArrayItemInitializeFunction<T>

        A function to further initialize each array item.

      Returns T[]

      An array of type T with the specified length and initialized values.

      1.0.5

      2025-07-02