Skip to content

API Reference / @gtkx/testing / prettyFormat / format

Function: format() ​

format(val, options?): string

Returns a presentation string of your val object

Parameters ​

val ​

unknown

any potential JavaScript object

options? ​

PrettyFormatOptions

Custom settings

Returns ​

string