UNPKG

react-tesna-utils

Version:

A versatile utility library featuring optimized functions for data manipulation, clipboard handling, text truncation, comparison, validation, and more. Designed for modern JavaScript and TypeScript projects with efficient and reusable solutions.

14 lines (13 loc) 262 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isJson = void 0; const isJson = (str) => { try { JSON.parse(str); return true; } catch (e) { return false; } }; exports.isJson = isJson;