@sx-bet/sportx-js
Version:
Provides an easy to use API to interact with the SportX relayer.
19 lines • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tryParseJson = void 0;
function tryParseJson(maybeJson) {
try {
return {
result: JSON.parse(maybeJson),
valid: true,
};
}
catch (e) {
return {
result: undefined,
valid: false,
};
}
}
exports.tryParseJson = tryParseJson;
//# sourceMappingURL=misc.js.map