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

Function normalizeKey

packages/react-aria/src/gridlist/utils.ts:40–46  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

38}
39
40export function normalizeKey(key: Key): string {
41 if (typeof key === 'string') {
42 return key.replace(/\s*/g, '');
43 }
44
45 return '' + key;
46}

Callers 1

getRowIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected