Skip to content

pajtai/get-setter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-setter

To use require and extend onto object:

var data = {
    get : require('get-setter').get,
    set : require('get-setter').set
};

data.set('user.first.name', 'Jane');

console.log(data.get('user.first.name'); // Jane

About

Getter and setter methods using dot notation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published