Skip to main content
isWeakSet - util/types - Node documentation
function isWeakSet

Usage in Deno

import { isWeakSet } from "node:util/types";
isWeakSet(object: unknown): object is WeakSet<object>

Returns true if the value is a built-in WeakSet instance.

util.types.isWeakSet(new WeakSet());  // Returns true

Parameters

object: unknown

Return Type

object is WeakSet<object>
Back to top