MCPcopy
hub / github.com/rx-angular/rx-angular / isKeyOf

Function isKeyOf

libs/state/selections/src/lib/utils/guards.ts:35–42  ·  view source on GitHub ↗
(k: unknown)

Source from the content-addressed store, hash-verified

33}
34
35export function isKeyOf<O>(k: unknown): k is keyof O {
36 const typeofK = typeof k;
37 return (
38 k !== null &&
39 k !== undefined &&
40 ['string', 'symbol', 'number'].includes(typeofK)
41 );
42}
43
44export function isObjectGuard(obj: unknown): obj is object {
45 return (

Callers 4

safePluckFunction · 0.90
typing.spec.tsFile · 0.90
setMethod · 0.90
connectMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected