MCPcopy Index your code
hub / github.com/angular-ui/ui-router / padNumber

Function padNumber

test/angular/1.4/angular.js:19259–19271  ·  view source on GitHub ↗
(num, digits, trim)

Source from the content-addressed store, hash-verified

19257}
19258
19259function padNumber(num, digits, trim) {
19260 var neg = '';
19261 if (num < 0) {
19262 neg = '-';
19263 num = -num;
19264 }
19265 num = '' + num;
19266 while (num.length < digits) num = ZERO_CHAR + num;
19267 if (trim) {
19268 num = num.substr(num.length - digits);
19269 }
19270 return neg + num;
19271}
19272
19273
19274function 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