If I've got
var aaa = [
{"id": 1, "text": "Ann"},
{"id": 2, "text": "Bob"},
{"id": 3, "text": "Carol"},
{"id": 4, "text": "Carol"},
]
and I want to get all the elements that text "Carol" but specifically I want just their IDs.What do I do?
If I've got
var aaa = [
{"id": 1, "text": "Ann"},
{"id": 2, "text": "Bob"},
{"id": 3, "text": "Carol"},
{"id": 4, "text": "Carol"},
]
and I want to get all the elements that text "Carol" but specifically I want just their IDs.What do I do?