MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isWeakKey

Function isWeakKey

packages/react-aria/src/collections/useCachedChildren.ts:83–93  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

81}
82
83function isWeakKey(value: any): value is WeakKey {
84 switch (typeof value) {
85 case 'object':
86 return value != null;
87 case 'function':
88 case 'symbol':
89 return true;
90 default:
91 return false;
92 }
93}

Callers 1

useCachedChildrenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected