Use _.find instead of _.filter to exit loop sooner, JSDoc fixes