Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 432 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 432 Bytes

javascript-typeOf

typeOf is a function to get the type of a javascript object.

result as : /*

  • typeOf({},['object','string']) == true;
  • typeOf({},'object) == true;
  • typeOf({}) == 'Object'
  • typeOf(null, 'Object') == false;
  • typeOf(function(){},'function') == true;
  • typeOf(undefined, 'undefined') == true;
  • typeOf(null,'null') == true;
  • typeOf() == 'undefined';
  • typeOf(NaN) == 'NaN'; */