lib/abaaso.js
function ( obj, camel ) {
		var result = string.trim( obj ).replace( /\s+/g, "-" );

		if ( camel === true ) {
			result = result.replace( /([A-Z])/g, "-$1" ).toLowerCase();
		}

		return result;
	}
function ( obj, camel ) {
		var result = string.trim( obj ).replace( /\s+/g, "-" );

		if ( camel === true ) {
			result = result.replace( /([A-Z])/g, "-$1" ).toLowerCase();
		}

		return result;
	}
function ( obj , camel ) { var result = string . trim ( obj ) . replace ( / \s+ / g , "-" ) ; if ( camel === true ) { result = result . replace ( / ([A-Z]) / g , "-$1" ) . toLowerCase ( ) ; } return result ; }
Replaces all spaces in a string with dashes

@method hyphenate
@param  {String} obj   String to hyphenate
@param {Boolean} camel [Optional] Hyphenate camelCase
@return {String}       String with dashes instead of spaces
Replaces all spaces in a string with dashes