code: function underscore(str) {
          return str.replace(/[-\s]+/g, '_').replace(/([A-Z\d]+)([A-Z][a-z])/g, '$1_$2').replace(/([a-z\d])([A-Z])/g, '$1_$2').toLowerCase();
      }
docs: Converts hyphens and camel casing to underscores.
  
  @param  {String} str String to convert
  @return {String}