JSFiddle - React, Tailwind, and code Playground

by Alexey Ryazhskikh

JavaScript

var x = [
    {_id: 1, last_update: 1}, 
    {_id: 2, last_update: 1},
    {_id: 3, last_update: 1}
];

var z = 
    _.where(x, {_id:1}).first();

console.log(JSON.stringify(z));