• Calculates the size of an array in bytes.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to calculate the size of.

    Returns number

    The size of the array in bytes.