static padArray(val, length) {
      if (typeof val === "object") {
        if (val.length < length) {
          const pad = length - val.length;
          for (let x = 1; x <= pad; x += 1) {
            val.push(0);
          }
        }
      } else if (typeof val === "number" || typeof val === "string") {
        return [val];
      }
      return val;
    }
/**
     * Increase the length of an array to the specified length.
     * @param {Array<Number>} val Array of integers to pad to equal length.
     * @param {Number} length New Length for the array.
     * @returns {Array<Number>}
     */
Increase the length of an array to the specified length.
@param {Array} val Array of integers to pad to equal length.
@param {Number} length New Length for the array.
@returns {Array}
Increase the length of an array to the specified length . @param { Array } val Array of integers to pad to equal length . @param { Number } length New Length for the array . @returns { Array }
static padArray(val, length) {
      if (typeof val === "object") {
        if (val.length < length) {
          const pad = length - val.length;
          for (let x = 1; x <= pad; x += 1) {
            val.push(0);
          }
        }
      } else if (typeof val === "number" || typeof val === "string") {
        return [val];
      }
      return val;
    }
static padArray ( val , length ) { if ( typeof val === "object" ) { if ( val . length < length ) { const pad = length - val . length ; for ( let x = 1 ; x <= pad ; x += 1 ) { val . push ( 0 ) ; } } } else if ( typeof val === "number" || typeof val === "string" ) { return [ val ] ; } return val ; }
Increase the length of an array to the specified length.
Increase the length of an array to the specified length .