MCPcopy
hub / github.com/JedWatson/react-select / isDocumentElement

Function isDocumentElement

packages/react-select/src/utils.ts:160–164  ·  view source on GitHub ↗
(
  el: HTMLElement | typeof window
)

Source from the content-addressed store, hash-verified

158// ==============================
159
160export function isDocumentElement(
161 el: HTMLElement | typeof window
162): el is typeof window {
163 return [document.documentElement, document.body, window].indexOf(el) > -1;
164}
165
166// Normalized Scroll Top
167// ------------------------------

Callers 4

SelectClass · 0.90
normalizedHeightFunction · 0.85
getScrollTopFunction · 0.85
scrollToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…