Function trimArrayBytesRight

  • Trims the trailing zero bytes from an array of numbers.

    Parameters

    • a: number[]

      The input array of numbers.

    Returns number[]

    Example

    const input = [1, 2, 3, 0, 0, 0];
    trimArrayBytesRight(input);
    //=> [1, 2, 3]

Generated using TypeDoc