Object.path >= 0.1.0
Purpose
Get the value of the given property path
Syntax
Object.path
(
Objectobj
Stringpath
);
Parameters
obj
path
- The path as a string (or an array)
Examples
var obj = {well: {test: {property: 'one'}}};
Object.path(obj, 'well.test.property');>>> 'one'
Object.path(obj, 'does.not.exist');>>> undefined
Comments