lib/core.js
function $number(params) {
    if (params == null) {
        return params;
    }
    if (typeof params === 'number') {
        return params;
    }
    if (typeof params === 'string') {
        return Number(params);
    }
    throw new Error('$number expects a number or string');
}
function $number(params) {
    if (params == null) {
        return params;
    }
    if (typeof params === 'number') {
        return params;
    }
    if (typeof params === 'string') {
        return Number(params);
    }
    throw new Error('$number expects a number or string');
}
function $number ( params ) { if ( params == null ) { return params ; } if ( typeof params === 'number' ) { return params ; } if ( typeof params === 'string' ) { return Number ( params ) ; } throw new Error ( '$number expects a number or string' ) ; }
Parse the given string into a number

@param {string} params
@returns {number}
Parse the given string into a number