assertElement
assertElement(
value,message?):asserts value is HTMLElement
Defined in: core/dom/elements.ts:13
Throws unless value is an element.
Parameters
Section titled “Parameters”unknown
What to check.
message?
Section titled “message?”string
The message of the error. Say what the element is for.
Returns
Section titled “Returns”asserts value is HTMLElement
Throws
Section titled “Throws”If value is null, undefined, or anything that is not an element.
Example
Section titled “Example”assertElement(element, 'The carousel element must be an HTMLElement.');