Skip to main content
Go to Latest
function matches.saferStringify
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.ts";
const { saferStringify } = matches;

Tries and run the stringify, if that fails just return the toString

Parameters

x: unknown

Could be anything, including a recursive object

Returns

string