UNPKG

array-to-tree

Version:

Convert a plain array of nodes (with pointers to parent nodes) to a tree

15 lines (14 loc) 202 B
{ "extends": "eslint:recommended", "rules": { "comma-dangle": "off" }, "env": { "browser": true, "node": true, "mocha": true }, "parserOptions": { "ecmaVersion": 6 } }