function zeroPad(array, length) {
  for (let i = array.length; i < length; i++) {
    array[i] = '0';
  }
}
Zero-pads array `array` until it is at least `length` long.

@param {array} array
@param {number} length