object-has-values
v1.0.0
Published
Check if object has values at given dot-notation paths.
Downloads
3
Readme
object-has-values
Check if object has values at given dot-notation paths.
Usage
var assert = require('assert');
var hasValues = require('object-has-values');
assert.equal(true, hasValues({
'aggregate.*.type': 'Project',
'aggregate.*.where.companyId': '*'
}, {
aggregate: [
{
type: 'Project',
where: { companyId: 123 }
},
{
type: 'Company',
where: { _id: 123 }
}
]
}));