DEV Community

Discussion on: Error Handling: Read the console output!

Collapse
 
mtrivera profile image
Miguel T Rivera

Thanks! I want to be consistent with the style, but can see benefits of leaner code. Some of the helper methods just return a value:

  this.getUnitIndex = function(input) {
    return input.search(/[a-zA-Z]/);
  }

I'll refactor the code after the user stories are satisfied.