lib/shared.js
function typeOf(value) {
            var s = typeof value;
            if(s === 'object') {
                if(value) {
                    if(value instanceof Array) {
                        s = 'array';
                    }
                } else {
                    s = 'null';
                }
            }
            return s;
        }
function typeOf(value) {
            var s = typeof value;
            if(s === 'object') {
                if(value) {
                    if(value instanceof Array) {
                        s = 'array';
                    }
                } else {
                    s = 'null';
                }
            }
            return s;
        }
function typeOf ( value ) { var s = typeof value ; if ( s === 'object' ) { if ( value ) { if ( value instanceof Array ) { s = 'array' ; } } else { s = 'null' ; } } return s ; }
Corrected type of value.
Arrays & null are not 'objects'
Corrected type of value . Arrays & null are not objects