How is it possible to check if a deep nested object containing a value? I want to check if the given object contains for example, a property value that contains "where" :
let data = {
name: 'Somebody',
address: {
city: 'somewhere'
},
tags: [{
id: 5
name: 'new'
}]
}
check(data, 'where') // should be true