Function trimArrayBytesLeft

  • Trims the left side of an array of bytes by removing leading zeros.

    Parameters

    • a: number[]

      The array of bytes to trim.

    Returns number[]

    Example

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

Generated using TypeDoc