MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / padNumber

Function padNumber

lib/test/angular/1.5.0/angular.js:19733–19745  ·  view source on GitHub ↗
(num, digits, trim)

Source from the content-addressed store, hash-verified

19731}
19732
19733function padNumber(num, digits, trim) {
19734 var neg = '';
19735 if (num < 0) {
19736 neg = '-';
19737 num = -num;
19738 }
19739 num = '' + num;
19740 while (num.length < digits) num = ZERO_CHAR + num;
19741 if (trim) {
19742 num = num.substr(num.length - digits);
19743 }
19744 return neg + num;
19745}
19746
19747
19748function dateGetter(name, size, offset, trim) {

Callers 3

dateGetterFunction · 0.70
timeZoneGetterFunction · 0.70
weekGetterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected