Skip to main content
types.isModuleNamespaceObject - util - Node documentation
function types.isModuleNamespaceObject

Usage in Deno

import { types } from "node:util";
isModuleNamespaceObject(value: unknown): boolean

Returns true if the value is an instance of a Module Namespace Object.

import * as ns from './a.js';

util.types.isModuleNamespaceObject(ns);  // Returns true

Parameters

value: unknown

Return Type

boolean