Published
Edited
Feb 15, 2021
1 fork
2 stars
Insert cell
Insert cell
Insert cell
health
Insert cell
Insert cell
Insert cell
hoshinKanriTextEntriesPlainJavaScript = hk =>
[hk.zig, hk.zag]
.map(z => z.panels)
.flat()
.map(p => p.entries)
.flat()
Insert cell
hoshinKanriTextEntriesPlainJavaScript(health)
Insert cell
Insert cell
hoshinKanriTextEntriesNestedRamda = (hk) =>
R.flatten(
R.map(
p => p.entries,
R.flatten(
R.map(
z => hk[z].panels,
["zig", "zag"]
)
)
)
)
Insert cell
hoshinKanriTextEntriesNestedRamda(health)
Insert cell
Insert cell
hoshinKanriTextEntriesPipeWise = R.pipe(
R.props(["zig", "zag"]),
R.map(k => k.panels), // or R.map(R.props(["panels"])),
R.flatten,
R.map(k => k.entries), // or R.map(R.props(["entries"])),
R.flatten
)
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more