+
Skip to content

rit/dotattr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotattr

Synopsis

Deeply get/set attribute of object nested within objects

Usage

var dot = require('./dotattr')

var src = {}
src.form = {
  user: {
    email: 'bruce@xap.me'
  }
}

var email = dot.get(src, 'form.user.email')

// password is undefined instead of raising KeyError
var password = dot.get(src, 'form.user.password')

License

MIT

About

Deeply get/set attribute of object nested within objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载