Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/caolan/nodeunit
/ f
Function
f
examples/browser/nodeunit.js:179–182 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
177
"use strict"
;
178
179
function
f(n) {
180
// Format integers to have at least two digits.
181
return
n < 10 ?
'0'
+ n : n;
182
}
183
184
if
(typeof Date.prototype.toJSON !==
'function'
) {
185
Callers
1
nodeunit.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected