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

Usage in Deno

```typescript import { isModuleNamespaceObject } from "node:node__util--types.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