select-obj

1.0.3 • Public • Published

#Usage

var select= require('select-obj');

var obj={
	a:
	{
		b:[1,2,3,4]
	},
	c:
	{
		d:
		{
			e:4
		}
	}
}

select(obj,'a.b.0');  // Outputs 1
select(obj,'c.d.e');  // Outputs 4

Readme

Keywords

Package Sidebar

Install

npm i select-obj

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • utkarsh85