lib/abaaso.js
function ( value ) {
		var tmp;

		if ( value === null || value === undefined ) {
			return undefined;
		}
		else if ( value === "true" ) {
			return true;
		}
		else if ( value === "false" ) {
			return false;
		}
		else if ( value === "null" ) {
			return null;
		}
		else if ( value === "undefined" ) {
			return undefined;
		}
		else if ( value === "" ) {
			return value;
		}
		else if ( !isNaN( tmp = Number( value ) ) ) {
			return tmp;
		}
		else if ( regex.json_wrap.test( value ) ) {
			return json.decode( value, true ) || value;
		}
		else {
			return value;
		}
	}
function ( value ) {
		var tmp;

		if ( value === null || value === undefined ) {
			return undefined;
		}
		else if ( value === "true" ) {
			return true;
		}
		else if ( value === "false" ) {
			return false;
		}
		else if ( value === "null" ) {
			return null;
		}
		else if ( value === "undefined" ) {
			return undefined;
		}
		else if ( value === "" ) {
			return value;
		}
		else if ( !isNaN( tmp = Number( value ) ) ) {
			return tmp;
		}
		else if ( regex.json_wrap.test( value ) ) {
			return json.decode( value, true ) || value;
		}
		else {
			return value;
		}
	}
function ( value ) { var tmp ; if ( value === null || value === undefined ) { return undefined ; } else if ( value === "true" ) { return true ; } else if ( value === "false" ) { return false ; } else if ( value === "null" ) { return null ; } else if ( value === "undefined" ) { return undefined ; } else if ( value === "" ) { return value ; } else if ( ! isNaN ( tmp = Number ( value ) ) ) { return tmp ; } else if ( regex . json_wrap . test ( value ) ) { return json . decode ( value , true ) || value ; } else { return value ; } }
Coerces a String to a Type

@method coerce
@param  {String} value String to coerce
@return {Mixed}        Primitive version of the String
Coerces a String to a Type