showing results for - "angular find value in json array"
Luciana
02 Aug 2017
1const foo = { "results": [
2    {
3        "id": 12,
4        "name": "Test"
5    },
6    {
7        "id": 2,
8        "name": "Beispiel"
9    },
10    {
11        "id": 3,
12        "name": "Sample"
13    }
14] };
15foo.results.find(item => item.id === 2)