Skip to main content
types.isModuleNamespaceObject - node__util.d.ts - Node documentation
function types.isModuleNamespaceObject

Usage in Deno

```typescript import { types } from "node:node__util.d.ts"; ```
isModuleNamespaceObject(value: unknown): boolean
Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). ```js import * as ns from './a.js'; util.types.isModuleNamespaceObject(ns); // Returns true ```

Parameters

value: unknown

Return Type

boolean