[go: up one dir, main page]

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

Readme

Keywords

none

Package Sidebar

Install

npm i eivindfjeldstad-dot

Weekly Downloads

26,723

Version

0.0.1

License

MIT

Last publish

Collaborators

  • eivifj