find-ancestors

v2.0.0
Recursively find and return a nested node and all its ancestors (parents) from a nested data structure (i.e. tree)
array list nested elements tree parents ancestors

test

mocha --reporter nyan

tdd

npm test -- --watch

release

npm version ${BUMP:-"patch"} --no-git-tag-version && git add package.json && git commit -m ":octocat: Bump to $(cat package.json | jq -r .version)" && git tag $(cat package.json | jq -r .version) && git push && git push --tags && npm publish

Metadata

  • MIT
  • >=0.10.0
  • Philipp Alferov
  • released 11/1/2015

Downloads

Maintainers