Implementation of type checking functions for JavaScript which wrap around the many inconsistencies in the core langauge. Lightweight and works cross-browser, or intends to. Ordinary Usage - passing a ...
Left: Data to check Right: Data type (Array, Object, etc.) Returns true if it is the specified type itself or its parent/ancestor Returns false if a child or descendant type is specified Very useful ...
The instanceof operator allows to check whether an object belongs to a certain class. It also takes inheritance into account. Such a check may be necessary in many cases. For example, it can be used ...