Object.path >= 0.1.0

Purpose

Get the value of the given property path

Syntax

Object.path ( ObjectobjStringpath );

Parameters

obj

path

The path as a string (or an array)

Return values

Examples

var obj = {well: {test: {property: 'one'}}};

Object.path(obj, 'well.test.property');
>>> 'one'

Object.path(obj, 'does.not.exist');
>>> undefined

Comments

Reyes

Can you tell me what platform are you using on this internet site?