Chalkboard - v3.0.1
    Preparing search index...

    Function pad

    • Pads an array with a specified number to a given length.

      Parameters

      • arr: number[]

        The array

      • length: number

        The desired length of the array

      • Optionalnum: number = 0

        The number to pad with (default is 0)

      Returns number[]