Useful JavaScript tools
Namespaces
Methods
-
static typeof(exp) → {string}
-
Improved typeof which returns the type of object instead of 'object'
Parameters:
Name Type Description exp
any The expression to check. Returns:
string - The type. For primitives, in lower case ('string', 'number', 'boolean', 'null', 'undefined')