MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / isElement

Function isElement

aspnet-samples/AspNetForm/Scripts/bootstrap.esm.js:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 element.dispatchEvent(new Event(TRANSITION_END));
123};
124const isElement = object => {
125 if (!object || typeof object !== 'object') {
126 return false;
127 }
128 if (typeof object.jquery !== 'undefined') {
129 object = object[0];
130 }
131 return typeof object.nodeType !== 'undefined';
132};
133const getElement = object => {
134 // it's a jQuery object or a node element
135 if (isElement(object)) {

Callers 8

getElementFunction · 0.70
isVisibleFunction · 0.70
_mergeConfigObjMethod · 0.70
_typeCheckConfigMethod · 0.70
_getConfigMethod · 0.70
_createPopperMethod · 0.70
_setContentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected