JSFiddle - React, Tailwind, and code Playground
by justbn
JavaScript
var receivedInvitations = [
{
id: 1, name: 'Jane Doe'},
id: 2, name: 'John Doe'}
}
];
var foundById = _.findWhere( receivedInvitations, { id: 2 });
var foundByName = _.findWhere( receivedInvitations, { name: 'John Doe' });