UNPKG

@sapphire/utilities

Version:
19 lines (16 loc) 493 B
'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/lib/tryParseJSON.ts function tryParseJSON(value, reviver) { try { return JSON.parse(value, reviver); } catch (err) { return value; } } __name(tryParseJSON, "tryParseJSON"); exports.tryParse = tryParseJSON; exports.tryParseJSON = tryParseJSON; //# sourceMappingURL=tryParseJSON.cjs.map //# sourceMappingURL=tryParseJSON.cjs.map