Skip to content

Property getter for objects which supports nesting i.e. x.y.z

Notifications You must be signed in to change notification settings

airportyh/getprop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getprop

Property getter for objects which supports nesting i.e. x.y.z

Install

npm install getprop

Usage

var get = require('getprop')

var bob = {
  name: 'bob',
  friend: {
    name: 'james'
  }
}
get(bob, 'friend.name') // => 'james'

About

Property getter for objects which supports nesting i.e. x.y.z

Resources

Stars

Watchers

Forks

Packages

No packages published