MCPcopy 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
25export const prependZero = key => clockTime =>
26 ({
27 ...clockTime,
28 [key]: (clockTime[key] < 10) ?
29 "0" + clockTime[key] :
30 clockTime[key]
31 })
32
33export const compose = (...fns) =>
34 (arg) =>

Callers 1

doubleDigitsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected