MCPcopy Index your code
hub / github.com/adobe/react-spectrum / normalizeKey

Function normalizeKey

packages/react-aria/src/table/utils.ts:21–27  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

19>();
20
21function normalizeKey(key: Key): string {
22 if (typeof key === 'string') {
23 return key.replace(/\s*/g, '');
24 }
25
26 return '' + key;
27}
28
29export function getColumnHeaderId<T>(state: TableState<T>, columnKey: Key): string {
30 let gridId = gridIds.get(state);

Callers 2

getColumnHeaderIdFunction · 0.70
getCellIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected