UNPKG

309 BTypeScriptView Raw
1/**
2Lowercase the keys of an object.
3
4@returns A new object with the keys lowercased.
5
6@example
7```
8import lowercaseKeys from 'lowercase-keys';
9
10lowercaseKeys({FOO: true, bAr: false});
11//=> {foo: true, bar: false}
12```
13*/
14export default function lowercaseKeys<T>(object: Record<string, T>): Record<string, T>;