UNPKG

ts-results-es

Version:

A TypeScript implementation of Rust's Result and Option objects.

14 lines 346 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toString = toString; function toString(val) { var value = String(val); if (value === '[object Object]') { try { value = JSON.stringify(val); } catch (_a) { } } return value; } //# sourceMappingURL=utils.js.map