types.isModuleNamespaceObject - Node documentation
function types.isModuleNamespaceObject

Usage in Deno

import { types } from "node:util";
const { isModuleNamespaceObject } = types;
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