3 ms·
JavaScript's "first()" is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find https://developer.mozilla.org/en-US/docs/W
by nayuki 5y ago
JavaScript's "first()" is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... .
- filoeleven 5y agoSame caveat applies here as my other sibling comment. I shouldn’t have to do null checks before calling functions.
- salawat 5y agoI shouldn't have to QA properly written code. Alas, reality, she is a cruel mistress.