property InspectOptions.sorted
If set to true
or a function, all properties of an object, and Set
and Map
entries are sorted in the resulting string.
If set to true
the default sort is used.
If set to a function, it is used as a compare function.
Type Jump to heading
boolean
| ((a: string,b: string,) => number)
| undefined