Boolean ng.defined (Mixed obj) vs. 1.1.0 Full+Lite

Check if the object obj is defined or not, can check for a zero (ng.defined(0) is true).

Parameters

Mixed obj Required vs. 1.1.0 Full+Lite
The object to check.

Return

Boolean Required vs. 1.1.0 Full+Lite
True if the object is defined or false if not.

Examples

Using ng.defined(obj)
Demo: