mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
7 lines
206 B
TypeScript
7 lines
206 B
TypeScript
// @ts-nocheck
|
|
|
|
export const transferObjectOptionsToArray = (input) =>
|
|
Object.entries(input).flatMap(([group, options]) =>
|
|
Object.entries(options).map(([key, value]) => ({ group, key, value })),
|
|
);
|