Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check javascript object not array and not null

function isObject(val) {
    if (val === null) { return false;}
    return ( (typeof val === 'function') || (typeof val === 'object') );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #javascript #object #array #null
ADD COMMENT
Topic
Name
5+2 =