Nothing Pleases Me

    setvalue
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Setvalue

    NPM version NPM downloads Build status Test coverage

    Set a nested value from an object by path.

    Installation

    npm install setvalue --save

    Usage

    import { set } from 'setvalue'
     
    const obj = { a: 'prop' }
     
    set(obj, ['a', 'b', 'c'], 10) //=> { a: { b: { c: 10 } } }

    License

    Apache 2.0

    Install

    npm i setvalue

    DownloadsWeekly Downloads

    2,998

    Version

    1.0.1

    License

    Apache-2.0

    Last publish

    Collaborators

    • blakeembrey