String ng.type (Mixed obj) vs. 1.1.0 Full+Lite

This function will return the object's type. However; instead if trying to figure every possible type in one place, it checks for the has_type property. Therefore; each object (custom or native) is extended with the has_type property.

Parameters

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

Return

String Required vs. 1.1.0 Full+Lite
The object type.

Examples

Using ng.type(obj)
Demo: