MCPcopy
hub / github.com/tinymce/tinymce / hasNonNullableKey

Function hasNonNullableKey

modules/katamari/src/main/ts/ephox/katamari/api/Obj.ts:106–107  ·  view source on GitHub ↗
(obj: T, key: K)

Source from the content-addressed store, hash-verified

104 hasOwnProperty.call(obj, key);
105
106export const hasNonNullableKey = <T extends {}, K extends keyof T>(obj: T, key: K): obj is T & Record<K, NonNullable<T[K]>> =>
107 has(obj, key) && obj[key] !== undefined && obj[key] !== null;
108
109export const isEmpty = (r: Record<any, any>): r is {} => {
110 for (const x in r) {

Callers

nothing calls this directly

Calls 1

hasFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…