JSFiddle - React, Tailwind, and code Playground
by BuddhiP
HTML
<div id="output" />
JavaScript
var M = [{
text: "text1",
cords: {x : 1, y: 2}},
{
text: "text2",
cords: {x : 3, y: 4}},
{
text: "Text3",
cords: {x : 5, y: 6}}]
var filtered = _.filter(M, function(i) {
return i.text == "text2" && i.cords.x == 3 && i.cords.y == 4;
});
console.log(filtered.length);
console.log(filtered);