isValid
Syntax
isValid(obj)
Description
Returns true if an object is not undefined and not null. Obj can be any JavaScript object or literal. This method is a convenience method to check that an object is both not null and not undefined.
Parameters
| Parameter | Description |
|---|---|
|
obj |
Obj can be any JavaScript object or literal. |
Returns
Returns a boolean.
Returns true if an object is not undefined and not null.