Let's start with an array:
arr=[
"EMPRESA",
"CD_DIRECAO",
"DT_INI_DIRECAO"
]
Next, we have an object:
primary = {
"EMPRESA": {"type": "varchar"},
"CD_DIRECAO": {"type": "varchar"},
"DT_INI_DIRECAO": {"type": "date"},
"CD_DEPT": {"type": "varchar"},
"DT_INI_DEPT": {"type": "date"},
"ANO": {"type": "number"},
"MES": {"type": "number"},
"TP_CUSTO": {"type": "varchar"},
}
The task at hand is to determine if any of the elements in arr can be found within the primary object. Any guidance on this would be greatly appreciated.