Skip to content

Instantly share code, notes, and snippets.

@danbete
danbete / recurssive.tree.js
Created Mar 18, 2019 — forked from alonronin/recurssive.tree.js
Create recursive tree from json using lodash transform without recursion. Can have unlimited nesting.
View recurssive.tree.js
var _ = require('lodash');
var arr = [
{"name":"my2child1","title":"My 2 Child 1","parent":"my2"},
{"name":"my2child2","title":"My 2 Child 2","parent":"my2"},
{"name":"parent","title":"A single parent"},
{"name":"child-parent","title":"A child parent","parent":"child1"},
{"name":"my","title":"My"},
{"name":"my2","title":"My2"},
{"name":"child1","title":"Child 1","parent":"my"},
@danbete
danbete / introrx.md
Created Mar 7, 2019 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md