Sha256: a5fc5e0d8492b8b099b3ddebcb3a9fbf0a8ad972a42a7a97e9d08c1e4d97c4e1
Contents?: true
Size: 379 Bytes
Versions: 62
Compression:
Stored size: 379 Bytes
Contents
var isPrimitive = require('../lang/isPrimitive'); /** * get "nested" object property */ function get(obj, prop){ var parts = prop.split('.'), last = parts.pop(); while (prop = parts.shift()) { obj = obj[prop]; if (obj == null) return; } return obj[last]; } module.exports = get;
Version data entries
62 entries across 62 versions & 1 rubygems