tasks/shopify_theme_settings.js
function zeropad(input, length) {
      input = input + ''; // Ensure input is a string.
      length = length || 2; // Ensure a length is set.
      return input.length >= length ? input : new Array(length - input.length + 1).join('0') + input;
    }
function zeropad(input, length) {
      input = input + ''; // Ensure input is a string.
      length = length || 2; // Ensure a length is set.
      return input.length >= length ? input : new Array(length - input.length + 1).join('0') + input;
    }
function zeropad ( input , length ) { input = input + '' ; // Ensure input is a string. length = length || 2 ; // Ensure a length is set. return input . length >= length ? input : new Array ( length - input . length + 1 ) . join ( '0' ) + input ; }
Zero padding function.
Used as both a filter and internally here.

@param input
@param length
@returns {string}
Zero padding function . Used as both a filter and internally here .