Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check javascript object not array and not null

function isObject (item) {
  return (typeof item === "object" && !Array.isArray(item) && item !== null && item!==undefined);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #javascript #object #array #null
ADD COMMENT
Topic
Name
3+1 =