flatten

export function flatten(obj: unknown, ...props: Record<string, boolean | string>[]): unknown;
export function flatten(obj: unknown, ...props: Record<string, boolean | string>[]): unknown;
Flatten an object. Any properties that are collections will get converted to an array of keys.
NameTypeOptionalDescription
objunknownNoThe object to flatten.
...propsRecord<string, boolean | string>[]NoSpecific properties to include/exclude.