src/flipclock/js/libs/time.js
function(totalDigits, digits) {
			var total    = 0;
			var newArray = [];
			
			$.each(digits, function(i, digit) {
				if(i < totalDigits) {
					total += parseInt(digits[i], 10);
				}
				else {
					newArray.push(digits[i]);
				}
			});
			
			if(total === 0) {
				return newArray;
			}
			
			return digits;
		}
function(totalDigits, digits) {
			var total    = 0;
			var newArray = [];
			
			$.each(digits, function(i, digit) {
				if(i < totalDigits) {
					total += parseInt(digits[i], 10);
				}
				else {
					newArray.push(digits[i]);
				}
			});
			
			if(total === 0) {
				return newArray;
			}
			
			return digits;
		}
function ( totalDigits , digits ) { var total = 0 ; var newArray = [ ] ; $ . each ( digits , function ( i , digit ) { if ( i < totalDigits ) { total += parseInt ( digits [ i ] , 10 ) ; } else { newArray . push ( digits [ i ] ) ; } } ) ; if ( total === 0 ) { return newArray ; } return digits ; }
Removes a specific number of leading zeros from the array.
This method prevents you from removing too many digits, even
if you try.

@param   int    Total number of digits to remove
@return  array  An array of digits
Removes a specific number of leading zeros from the array . This method prevents you from removing too many digits even if you try .