deno.land / std@0.224.0 / expect / _inspect_args.ts

_inspect_args.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// deno-lint-ignore-file
export function inspectArgs(args: unknown[]): string { return args.map(inspectArg).join(", ");}
export function inspectArg(arg: unknown): string { const { Deno } = globalThis as any; return typeof Deno !== "undefined" && Deno.inspect ? Deno.inspect(arg) : String(arg);}
std

Version Info

Tagged at
6 months ago