Skip to content

A couple of functions to read and write object properties by using a string dot notation

License

Notifications You must be signed in to change notification settings

cvelazquez/javascript.readAndWritePaths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

javascript.readAndWritePaths

A couple of functions to read and write object properties by using a string dot notation. Example:

var a = {b:{c:{d:1,e:2}}};
writePath(a, 'b.c.f', 3);
var c = readPath(a, 'b.c');
console.log(c);

About

A couple of functions to read and write object properties by using a string dot notation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published