Open this example in the interactive library
Source code
import { types } from "node:util";
console.log(types.isSet(new Set([1])));
Sample output
true

Open this example in the interactive library
import { types } from "node:util";
console.log(types.isSet(new Set([1])));
true