lib/abaaso.js
function ( obj, all ) {
		all = ( all === true );

		var result;

		if ( all ) {
			result = string.explode( obj, " " ).map( function ( i ) {
				return i.charAt( 0 ).toUpperCase() + i.slice( 1 );
			}).join(" ");
		}
		else {
			result = obj.charAt( 0 ).toUpperCase() + obj.slice( 1 );
		}

		return result;
	}
function ( obj, all ) {
		all = ( all === true );

		var result;

		if ( all ) {
			result = string.explode( obj, " " ).map( function ( i ) {
				return i.charAt( 0 ).toUpperCase() + i.slice( 1 );
			}).join(" ");
		}
		else {
			result = obj.charAt( 0 ).toUpperCase() + obj.slice( 1 );
		}

		return result;
	}
function ( obj , all ) { all = ( all === true ) ; var result ; if ( all ) { result = string . explode ( obj , " " ) . map ( function ( i ) { return i . charAt ( 0 ) . toUpperCase ( ) + i . slice ( 1 ) ; } ) . join ( " " ) ; } else { result = obj . charAt ( 0 ) . toUpperCase ( ) + obj . slice ( 1 ) ; } return result ; }
Capitalizes the String

@method capitalize
@param  {String}  obj String to capitalize
@param  {Boolean} all [Optional] Capitalize each word
@return {String}      Capitalized String
Capitalizes the String