Nutritious Pumpkin Masses

    unset

    0.0.2 • Public • Published

    Unset

    A simple method to unset nested attributes from a JSON object.

    Sample usage:

    let unset = require('unset');
    let object = {a: { b: [ {x: 1}, {x: [{ e: 2} ]}]}}
    let newObject = unset(object, ['/a/b[*]/x'])
    

    The second argument paths is similar to the paths that you can give in the json-path module

    Keywords

    none

    Install

    npm i unset

    DownloadsWeekly Downloads

    9

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • pvsrivathsa