index.js
function castArgument(arg) {
		if (isNumber(arg)) {
			return parseFloat(arg);
		}

		if (helpers.isFraction(arg)) {
			arg = arg.split('/');

			return arg[0] / arg[1];
		}

		if (arg === 'false' || arg === 'true') {
			return arg === 'true';
		}

		return arg.length ? arg : undefined;
	}
function castArgument(arg) {
		if (isNumber(arg)) {
			return parseFloat(arg);
		}

		if (helpers.isFraction(arg)) {
			arg = arg.split('/');

			return arg[0] / arg[1];
		}

		if (arg === 'false' || arg === 'true') {
			return arg === 'true';
		}

		return arg.length ? arg : undefined;
	}
function castArgument ( arg ) { if ( isNumber ( arg ) ) { return parseFloat ( arg ) ; } if ( helpers . isFraction ( arg ) ) { arg = arg . split ( '/' ) ; return arg [ 0 ] / arg [ 1 ] ; } if ( arg === 'false' || arg === 'true' ) { return arg === 'true' ; } return arg . length ? arg : undefined ; }
Convert argument to proper type

@param {string} arg
@returns {*}
Convert argument to proper type