UNPKG

@devlander/utils

Version:

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

7 lines (6 loc) 297 B
/** * Checks if a string is a valid JSON by attempting to parse it. * @param str The string to check. * @returns Returns the parsed JSON object if the string is valid JSON, otherwise returns false. */ export declare const isJson: (value: string | object) => Record<string, unknown> | boolean;