Below is the array with objects:
myArray:[
{"name":"Ram", "email":"[email protected]", "userId":"HB000006"},
{"name":"Shyam", "email":"[email protected]", "userId":"US000026"},
{"name":"John", "email":"[email protected]", "userId":"HB000011"},
{"name":"Bob", "email":"[email protected]", "userId":"US000106"}
]}
I tried this but I am not getting output:
item= myArray.filter(element => element.includes("US"));
I am new to Angular.