Snippetz
Save, edit, download and share your cool code snippets!
Line Number
Font size :
Material Darker
Dracula
Blackboard
Cobalt
Duotone Light
Hopsotch
Material
Material Darker
Material Palenight
Monokai
Nord
Paraiso Light
JavaScript
JavaScript
CSS
HTML
Python
JSX
TypeScript
Sass
Shell
SQL
C++
Save
Load
Export
const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], const compose = (...fns) => res => fns.reduce((accum, next) => next(accum), res) const unfold = (f, seed) => { const go = (f, seed, acc) => { const res = f(seed) return res ? go(f, res[1], acc.concat([res[0]])) : acc } return go(f, seed, []) }
×
Load Snippet
Made by
Parth Bhardwaj
|
View
source code