Update prettier to 3.3.3
This commit is contained in:
parent
1773ad1e11
commit
24a22bf191
109 changed files with 452 additions and 392 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
export function objectMap<T>(
|
||||
obj: Record<string, T>,
|
||||
f: (key: keyof typeof obj, value: typeof obj[keyof typeof obj]) => unknown
|
||||
f: (key: keyof typeof obj, value: (typeof obj)[keyof typeof obj]) => unknown
|
||||
): Array<unknown> {
|
||||
const keys: Array<keyof typeof obj> = Object.keys(obj);
|
||||
return keys.map(key => f(key, obj[key]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue