function removeLeadingZeroes(n) {
  if (!n.length) return n;

  while (n[0] === 0 && n.length > 1) {
    n.splice(0, 1);
  }

  return n;
}
/**
 * Removes leading zeroes from array
 * @param {number[]} n Array potentially containing leading zeroes
 */
Removes leading zeroes from array
@param {number[]} n Array potentially containing leading zeroes
Removes leading zeroes from array @param { number [] } n Array potentially containing leading zeroes
function removeLeadingZeroes(n) {
  if (!n.length) return n;
  while (n[0] === 0 && n.length > 1) {
    n.splice(0, 1);
  }
  return n;
}
function removeLeadingZeroes ( n ) { if ( ! n . length ) return n ; while ( n [ 0 ] === 0 && n . length > 1 ) { n . splice ( 0 , 1 ) ; } return n ; }
Removes leading zeroes from array
 @param {number[]} n Array potentially containing leading zeroes
Removes leading zeroes from array @param { number [] } n Array potentially containing leading zeroes