UNPKG

node-objectify

Version:

Utility for setting/getting/manipulating deeply nested attributes of an object or array.

16 lines (12 loc) 321 B
'use strict'; module.exports = objectify; function objectify(src) { if (typeof src !== 'object') { throw new Error('You can only feed objects to objectify.'); } return { get: require('./methods/get')(src), isSet: require('./methods/is-set')(src), set: require('./methods/set')(src) }; }