This package has been deprecated

Author message:

Use @eivifj/dot instead

eivindfjeldstad-dot

0.0.1 • Public • Published

dot

Get and set object properties with dot notation

Installation

$ component install eivindfjeldstad/dot

API

dot.set(object, path, value)

dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');

dot.get(object, path)

var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');

License

MIT

/eivindfjeldstad-dot/

    Package Sidebar

    Install

    npm i eivindfjeldstad-dot

    Weekly Downloads

    29,851

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • eivifj