Have ideas to improve npm?Join in the discussion! »

    tree-operations

    0.9.4 • Public • Published

    tree-operations

    build version package dependencies minified linter tests license hits

    The lastest version of this document is available on Github > tree-operations

    Availables operations

    • fromArray : create a tree from an array of objects
    • toFlatArray : create a flat list from an tree
    • find : find a node in a tree
    • selectNew : filters the properties of the nodes of the tree
    • orderBy : order the leaves of the tree respecting the structure of the tree

    Installation

    npm install tree-operations --save
    

    or

    yarn add tree-operations --save
    

    prerequisites

    for NodeJs

     var TreeOps=require("tree-operations");
    

    for browser

    <script src="node_modules/find-polyfill/distrib/find-polyfill.min.js"></script>
    
    <script src="node_modules/tree-operations/distrib/tree-operations.min.js"></script>
    

    Install

    npm i tree-operations

    DownloadsWeekly Downloads

    2

    Version

    0.9.4

    License

    MIT

    Unpacked Size

    31.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar