# nv-data-tree-csp-include

> nv-data-tree-csp-include ======================== - nv-data-tree-csp-include - convert array-of-sets to a tree

Latest version **1.0.4** (published 2021-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-data-tree-csp-include
pnpm add nv-data-tree-csp-include
yarn add nv-data-tree-csp-include
bun add nv-data-tree-csp-include
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-09-30 |
| First published | 2021-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-data-tree-csp-include
- npm.io page: https://npm.io/package/nv-data-tree-csp-include

## Dependencies (3)

- [nv-set-sort](https://npm.io/package/nv-set-sort.md) ^0.0.2
- [nv-data-tree-csp-node](https://npm.io/package/nv-data-tree-csp-node.md) ^1.0.16
- [nv-data-tree-csp-forest](https://npm.io/package/nv-data-tree-csp-forest.md) ^1.0.21

## Recent versions

- 1.0.4 (latest) — 2021-09-30
- 1.0.3 — 2021-09-30
- 1.0.2 — 2021-09-28
- 1.0.1 — 2021-09-08

## README

nv-data-tree-csp-include
========================
- nv-data-tree-csp-include
- convert array-of-sets to a tree


install
=======
- npm install nv-data-tree-csp-include

usage
=====

        const {tree} = require("nv-data-tree-csp-include")
        
        var st0 = new Set([1,2,3])
        var st1 = new Set([2,3])
        var st2 = new Set([2,4,5])
        var st3 = new Set([4,5])
        var st4 = new Set([4])
        var st5 = new Set([3])
        
        function has_func(a,b) {
            for(let each of b) {
                if(a.has(each)) {
                } else {
                    return(false)
                }
            }
            return(true)
        }
        
        
        
        
        var unhandled = [st0,st1,st2,st3,st4,st5]
        var t = tree(unhandled,has_func)
        
        > t.show(1)
        # 1
        Set(3) { 2, 4, 5 }
        # 1
        Set(3) { 1, 2, 3 }
        undefined
        >
        > t.show(2)
        ## 2
        Set(2) { 4, 5 }
        ## 2
        Set(2) { 2, 3 }
        undefined
        > t.show(3)
        ### 3
        Set(1) { 4 }
        ### 3
        Set(1) { 3 }
        undefined
        > t.show(4)
        undefined
        >
        > t.show()
         0
        Set(6) {
          Set(3) { 2, 4, 5 },
          Set(3) { 1, 2, 3 },
          Set(2) { 4, 5 },
          Set(2) { 2, 3 },
          Set(1) { 3 },
          Set(1) { 4 }
        }
        # 1
        Set(3) { 2, 4, 5 }
        ## 2
        Set(2) { 4, 5 }
        ### 3
        Set(1) { 4 }
        # 1
        Set(3) { 1, 2, 3 }
        ## 2
        Set(2) { 2, 3 }
        ### 3
        Set(1) { 3 }
        undefined
        >
        



LICENSE
=======
- ISC

---
_Source: https://npm.io/package/nv-data-tree-csp-include · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
