Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/testing/asserts.ts>_format

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function _format
import { _format } from "https://deno.land/std@0.135.0/testing/asserts.ts";

Converts the input into a string. Objects, Sets and Maps are sorted so as to make tests less flaky

Parameters

v: unknown

Value to be formatted

Returns

string