existence.js | |
Functions | |
is_defined | Checks if a variable is undefined. |
is_undefined | Checks if a variable is defined. |
is_typeof | Determine an object’s type strictly by comparing constructors. |
is_numeric | Determine if the suspect string represents a numeric value. |
is_string | Determine the suspect is a string. |
is_array | Determine if the suspect is an array. |
is_number | Determines if the suspect is a number. |
var is_typeof = function( type, suspect )
Determine an object’s type strictly by comparing constructors.
type | The type you expect (ie. String, Number, Array without quotes: is_typeof(String, ‘hello’): // true) |
suspect | The variable to check against type |
bool
is_numeric, is_string, is_array, is_number, <is_date>, <is_bool>, <is_regex>
var is_string = function( suspect )
Determine the suspect is a string. This is a proxy method for is_typeof(String, suspect).
suspect | supect variable to test |
bool
is_typeof, is_numeric, is_array, is_number, <is_date>, <is_bool>, <is_regex>
var is_array = function( suspect )
Determine if the suspect is an array. This is a proxy method for is_typeof(Array, suspect).
suspect | suspect variable to test |
bool
is_numeric, is_string, is_number, <is_date>, <is_bool>, <is_regex>
var is_number = function( suspect )
Determines if the suspect is a number. This is a proxy method for is_typeof(Number, suspect)
suspect | suspect variable to test |
bool
is_numeric, is_string, is_array, <is_date>, <is_bool>, <is_regex>
Checks if a variable is undefined.
var is_defined = function( suspect )
Checks if a variable is defined.
var is_undefined = function( suspect )
Determine an object’s type strictly by comparing constructors.
var is_typeof = function( type, suspect )
Determine if the suspect string represents a numeric value.
var is_numeric = function( suspect )
Determine the suspect is a string.
var is_string = function( suspect )
Determine if the suspect is an array.
var is_array = function( suspect )
Determines if the suspect is a number.
var is_number = function( suspect )