@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
7 lines • 299 B
TypeScript
/**
* Converts a nested object/array into a flat object with path-like keys.
* @param {any} obj - The object or array to flatten.
* @returns {Record<string, any>} The flattened object.
*/
export default function flattenObj(obj: any): Record<string, any>;
//# sourceMappingURL=flattenObj.d.ts.map