I am having two arrays
array 1 = [ { "text": "Javascript" },
{ "text": "Angularjs" },
{ "text": "Scala" },
{ "text": "Apache Spark" },
{ "text": "Play Framework" }]
array 2 = [ { "text": "Javascript" },
{ "text": "Angularjs" },
{ "text": "Scala" }]
How do I get the intersection of the two objects with filters i.e [{ "text": "Angularjs" },
{ "text": "Scala" }]