I have a multidimensional array, where I'd like to check if a value is in it. I've tried Array.includes("value")
, but nothing came up. This is my code:
var database = [{
"identifier": "test1",
"extra": "information1"
},{
"identifier": "test2",
"extra": "information2"
},{
"identifier": "test3",
"extra": "information3"
}
]
How do I test if "identifier"
is in my array?
Thank you!