Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/MoonHighway/learning-react
/ prependZero
Function
prependZero
chapter-07/mounting-lifecycle-clock/src/lib.js:25–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
})
24
25
export
const
prependZero = key => clockTime =>
26
({
27
...clockTime,
28
[key]: (clockTime[key] < 10) ?
29
"0"
+ clockTime[key] :
30
clockTime[key]
31
})
32
33
export
const
compose = (...fns) =>
34
(arg) =>
Callers
1
doubleDigits
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected