2 ms·
I've started preferring returning early instead of if-else. So: _getWords: -> return @words if @words.length # the other case of the method this a
by bergie 15y ago
I've started preferring returning early instead of if-else. So:
_getWords: ->
return @words if @words.length
# the other case of the method
this approach makes the code read almost like English.