javascript get object from array where property equals

JavaScript
var res = jsArray.find(obj => { return obj.b === 6 })
Source

Also in JavaScript: