Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check the type of a variable in js

if(typeof variable == 'object'){
  //
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #check #type #variable #js
ADD COMMENT
Topic
Name
7+6 =