Skip to content

kaisarsnippets/js-obj-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OBJPath

[js] Get property by path.h.

Install

npm install kc-obj-path

Use

var objPath = require('kc-obj-path');
var obj = {
    foo: [
        {a:1, b:2},
        {a:3, b:4},
        {a:5, b:6}
    ]
};
var out = objPath(obj, 'foo[1].b');
console.log(out);

About

[js] Get property by path.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published