MCPcopy Index your code
hub / github.com/ddopson/underscore-cli / f2

Function f2

lib/formatter.js:197–200  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

195
196function ISO8601(d) {
197 function f2(n) {
198 // Format integers to have at least two digits.
199 return (n < 10) ? ('0' + n) : n;
200 }
201 function f3(n) {
202 // Format integers to have at least three digits.
203 return (n < 10) ? ('00' + n) : (n < 100) ? ('0' + n) : n;

Callers 1

ISO8601Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected