UNPKG

phylotree

Version:

A JavaScript library for developing applications and interactive visualizations involving [phylogenetic trees](https://en.wikipedia.org/wiki/Phylogenetic_tree), written as an extension of the [D3](http://d3js.org) [hierarchy layout](https://github.com/d3/

8 lines (6 loc) 139 B
export function itemTagged(item) { return item.tag || false; } export function itemSelected(item, tag) { return item[tag] || false; }