src/iso2709.js
function addLeadingZeros(numField, length) {
		while (numField.toString().length < length) {
			numField = '0' + numField.toString();
		}

		return numField;
	}
function addLeadingZeros(numField, length) {
		while (numField.toString().length < length) {
			numField = '0' + numField.toString();
		}

		return numField;
	}
function addLeadingZeros ( numField , length ) { while ( numField . toString ( ) . length < length ) { numField = '0' + numField . toString ( ) ; } return numField ; }
Adds leading zeros to the specified numeric field.
Adds leading zeros to the specified numeric field .