MCPcopy
hub / github.com/Maronato/vue-toastification / isDOMRect

Function isDOMRect

src/ts/utils.ts:77–84  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

75 isToastComponent(obj));
76
77const isDOMRect = (obj: unknown): obj is DOMRect =>
78 isObject(obj) &&
79 isNumber(obj.height) &&
80 isNumber(obj.width) &&
81 isNumber(obj.right) &&
82 isNumber(obj.left) &&
83 isNumber(obj.top) &&
84 isNumber(obj.bottom);
85
86const hasProp = <O extends unknown, K extends PropertyKey>(
87 obj: O,

Callers 1

utils.spec.tsFile · 0.90

Calls 2

isObjectFunction · 0.85
isNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…