UNPKG

node-objectify

Version:

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

11 lines (8 loc) 243 B
'use strict'; var getNestedProps = require('./shared').getNestedProperty; module.exports = function isSetFactory(src) { return function isSet(path) { var isSet = getNestedProps(path, src); return isSet === false || !!isSet; }; }