MCPcopy Create free account
hub / github.com/ampproject/amphtml / isValidElement

Function isValidElement

third_party/inputmask/inputmask.dependencyLib.js:32–34  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

30 return ltype === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
31 }
32 function isValidElement(elem) {
33 return elem instanceof window.Element;
34 }
35 function DependencyLib(elem) {
36 if (elem instanceof DependencyLib) {
37 return elem;

Callers 2

augmentFunction · 0.85
factoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected