of
type checking
check type of value. returns capitalised name of type. e.g., 'Object', 'Function', 'Array':
oftypevalue;
returns true if value is an element, otherwise false:
of;
returns true if value is a string, otherwise false:
of;
returns true if value is an array, otherwise false:
of;
returns true if value is an object, otherwise false:
ofobjectvalue;
returns true if value is a function, otherwise false:
of'function'value;
returns true if value is a boolean, otherwise false:
of;
returns true if value is a number, otherwise false:
of;
returns true if value is undefined, otherwise false:
of'undefined'value;
returns true if value is an arguments array, otherwise false:
of'arguments'value;
returns true if value is a regex, otherwise false:
of;
returns true if value is null, otherwise false:
of'null'value;
returns true if value is a date object, otherwise false:
of;