frontend/.pnpm-store/v3/files/73/be2ce2eef899a043e8ae32c0f3b18c5a1cc99c7b6bb99debc55ea9c77c0bfd25b3656b104a67a142be6629f83e92a1a7c735c6241f29fa51e39b661f727c21

10 lines
270 B
Plaintext

export default function normalizeKey(key) {
// Cast the key to a string, as that's all we can set as a key.
if (typeof key !== 'string') {
console.warn(`${key} used as a key, but it is not a string.`);
key = String(key);
}
return key;
}