JavaScript Array ‘find’ Method

In working on a JavaScript API at work, I made this little snippet for adding a find method to JavaScript arrays. Since latest APIs are including a forEach and a filter, a find made sense but wasn’t there which baffles me. More than anything, I’m putting this here so I can find it later. 😛

Here it is, short and sweet: