Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    orderedpublic

    ordered

    build status dependency status

    browser support

    Insert DOM elements into a container in order

    Example

    var ordered = require("ordered")
     
    var insert = ordered(containerElem)
     
    insert("someKey", someElem)
    insert("someOtherKey", someElem)
    insert(data.sortKey, Widget(data))

    The elements will be inserted into the containerElem in order of the key you pass as first argument

    Installation

    npm install ordered

    Contributors

    • Raynos

    MIT Licenced

    Keywords

    none

    install

    npm i ordered

    Downloadsweekly downloads

    24

    version

    0.1.7

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar