MCPcopy Index your code
hub / github.com/MoonHighway/learning-react / compose

Function compose

chapter-03/09-composition/05-declarative-clock.js:44–49  ·  view source on GitHub ↗
(...fns)

Source from the content-addressed store, hash-verified

42 })
43
44const compose = (...fns) =>
45 (arg) =>
46 fns.reduce(
47 (composed, f) => f(composed),
48 arg
49 )
50
51const convertToCivilianTime = clockTime =>
52 compose(

Callers 3

convertToCivilianTimeFunction · 0.70
doubleDigitsFunction · 0.70
startTickingFunction · 0.70

Calls 1

fFunction · 0.85

Tested by

no test coverage detected