isValidType()

Function to check if the given value is a valid value and that it is not null. This method was originally created by Adobe.

The function isValidType() is located in the file misc.jsxinc.

Usage

var value;
if(isValidType(value))
   //Do something if this is a valid value

Parameters

Parameter Data type Required Description
value all The value to check.

Return values

Value Meaning
true The value is valid and not null.
false The value is invalid or is null.