UNPKG

@devlander/utils

Version:

Comprehensive JavaScript and TypeScript utilities for seamless development. Includes object manipulation, data validation, and more.

8 lines (7 loc) 369 B
/** * Removes new lines from a JSON string or object. * @param jsonInput The JSON string or object to remove new lines from. * @returns Returns the JSON object with new lines removed. * @throws Throws an error if the input is not valid JSON. */ export declare const removeNewLinesFromJson: (jsonInput: string | Record<string, unknown>) => Record<string, unknown>;