Elementals.js

Latest Version: 3.7 Final 20 December 2018

Method _.throw.nonInstance

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:
_.throw.nonInstance(Object, objectName)
Parameters:
Element
The Element to check
objectName
The name of the type of object to test for.
Returns:
nothing

Advertisement