I need help with lodash cause i dont understand functional programming and lodash is very helpfull with object/arrays operations.
I need to search objects inside object and return true if key exists. I've setup a jsfiddle. Apreciate your help.
var dependsOn={
"Cadastro": {
"RHID": "RHID"
},
"Agregados":{
"CD_DOC":"CD_DOC"
}
"Documentos":{
"RHID":"CD_DOC"
}
}
var field='RHID'
alert(_.contains(_.keys(dependsOn), field))