MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / padNumberInMock

Function padNumberInMock

lib/test/angular/1.7.0/angular-mocks.js:614–626  ·  view source on GitHub ↗
(num, digits, trim)

Source from the content-addressed store, hash-verified

612}
613
614function padNumberInMock(num, digits, trim) {
615 var neg = '';
616 if (num < 0) {
617 neg = '-';
618 num = -num;
619 }
620 num = '' + num;
621 while (num.length < digits) num = '0' + num;
622 if (trim) {
623 num = num.substr(num.length - digits);
624 }
625 return neg + num;
626}
627
628
629/**

Callers 1

angular-mocks.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected