A Map keyed by UUID that matches case- and whitespace-insensitively. Every key is normalized on insert and on lookup, so a value stored under 'a1b2…' is found with Get('A1B2…'). Iterates [normalizedKey, value] pairs.
Map
'a1b2…'
Get('A1B2…')
[normalizedKey, value]
const roleNames = new UUIDMap(roles.map(r => [r.ID, r.Name]));const name = roleNames.Get(permission.RoleID); Copy
const roleNames = new UUIDMap(roles.map(r => [r.ID, r.Name]));const name = roleNames.Get(permission.RoleID);
Optional
The value stored for the ID, or undefined.
Normalized keys.
Stores a value for the ID, replacing any value stored under a case variant of it.
A
Mapkeyed by UUID that matches case- and whitespace-insensitively. Every key is normalized on insert and on lookup, so a value stored under'a1b2…'is found withGet('A1B2…'). Iterates[normalizedKey, value]pairs.Example