7 lines
231 B
TypeScript
7 lines
231 B
TypeScript
export function selectDirtySettingsValues(
|
|
values: Readonly<Record<string, string>>,
|
|
dirtyKeys: Iterable<string>
|
|
): Record<string, string> {
|
|
return Object.fromEntries([...dirtyKeys].map((key) => [key, values[key] ?? ""]));
|
|
}
|