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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i eivindfjeldstad-dot

      Weekly Downloads

      21,603

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • eivifj