I have the below array object:
[ { "emp_id": "1", "cmp_id": 1, "name": "test1" }, { "emp_id": "2", "cmp_id": 1, "name": "test2" }, { "emp_id": "2", "cmp_id": 1, "name": "test12" } ]
I want to filter data by cmp_id.