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

Function padNumberInMock

test/angular/1.7/angular-mocks.js:762–774  ·  view source on GitHub ↗
(num, digits, trim)

Source from the content-addressed store, hash-verified

760}
761
762function padNumberInMock(num, digits, trim) {
763 var neg = '';
764 if (num < 0) {
765 neg = '-';
766 num = -num;
767 }
768 num = '' + num;
769 while (num.length < digits) num = '0' + num;
770 if (trim) {
771 num = num.substr(num.length - digits);
772 }
773 return neg + num;
774}
775
776
777/**

Callers 1

angular-mocks.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected