Datatype Validation (Javascript):   Return to List

IsArray(arg) //Returns true if argument is an array; false otherwise.

IsDefined(arg) //Returns true if argument is defined; false otherwise.

IsEmpty(obj) //Returns true if an object posses no properties; false otherwise.

IsFunction(arg) //Returns true if argument is a function; false otherwise.

IsNull(obj) //Returns true if an object is a null; false otherwise.

IsObject(arg) //Returns true if argument is an object; false otherwise.

IsString(arg) //Returns true if argument is a string; false otherwise.

FunctionName(func) //Returns the name of the function.

ObjectName(obj) //Returns the name of the object.

ToFunction(obj) //Converts object to function



Note to Webmaster