Skip to main content
InspectOptions.sorted - util - Node documentation
property InspectOptions.sorted

Usage in Deno

import { type InspectOptions } from "node:util";

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

boolean
| ((
a: string,
b: string,
) => number)

| undefined
Back to top