@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
12 lines • 354 B
TypeScript
/**
* Checks if string is a valid JSON string
* @param str{String} - source String
* @return {Boolean}
* @example
* // How to check if string is a JSON?
* const str = '{ "hello": "world" }';
* const isStrJSON = isJSON(str);
* console.log(isStrJSON); // => true
*/
export function isJSON(str: string): boolean;
//# sourceMappingURL=index.d.ts.map