I am new to Javascript. I have the following Mongodb Result Array
Result = [
{
"userId": "5cecfab4219aca350421b063",
"providers": [
"1689736266",
"1598763690",
"1528069614",
"1831364272",
"1548463045",
"1245301159",
"1386616399",
"1790775971",
"1629462130",
"1992169783"
],
"countByType": {
"doctors": 6,
"labs": 0,
"hospitals": 0,
"imagingCenters": 0,
"other": 4
},
"id": "5cecfab4219aca350421b066"
}
]
I have another Array
newArray = [1689736266, 1831364272, 123456789, 235695654 ];
how to get the array value in newArray which are not in MongoDBResult providers Array.
Eg: anotherArray = [123456789, 235695654];
Also how can I get the providers Array result using Javascript.