Elementals.js

Latest Version: 2.0 RC 3 14 March 2017

Method _.throwNonInstance

Summary:

Throws a new TypeError if the passed Object is not an instance of a specified object name. Will also throw a TypeError if the variable passed is undefined or null.

Calling Convention:
_.throwNonInstance(Object, objectName)
Parameters:
Element
The Element to check
objectName
The name of the type of object to test for.
Returns:
nothing