function toType(obj) {
    let type = getType(obj);
    // some extra disambiguation for numbers
    if (type === 'number') {
        if (isNaN(obj)) {
            type = 'nan';
        } else if ((obj | 0) != obj) {
            //bitwise OR produces integers
            type = 'float';
        } else {
            type = 'integer';
        }
    }
    return type;
}
//returns a string "type" of input object
returns a string "type" of input object
returns a string " type " of input object
function toType(obj) {
    let type = getType(obj);
    if (type === 'number') {
        if (isNaN(obj)) {
            type = 'nan';
        } else if ((obj | 0) != obj) {
            type = 'float';
        } else {
            type = 'integer';
        }
    }
    return type;
}
function toType ( obj ) { let type = getType ( obj ) ; if ( type === 'number' ) { if ( isNaN ( obj ) ) { type = 'nan' ; } else if ( ( obj | 0 ) != obj ) { type = 'float' ; } else { type = 'integer' ; } } return type ; }
returns a string "type" of input object
returns a string " type " of input object
// some extra disambiguation for numbers //bitwise OR produces integers