Wraps an object with a Proxy that makes property access case-insensitive.
Property lookup (e.g. obj.Foo or obj.foo) will resolve to the same underlying key, regardless of casing.
Only affects string-based property access (not symbols).
Type Parameters
T extends Record<string, any>
Parameters
obj: any
The original object.
Returns T
A proxied object with case-insensitive property access.
Wraps an object with a Proxy that makes property access case-insensitive.
Property lookup (e.g.
obj.Fooorobj.foo) will resolve to the same underlying key, regardless of casing. Only affects string-based property access (not symbols).