Notably, using some newer JavaScript API such as Array.prototype.findIndex() instead of old crusty i++ loops.