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

Usage in Deno

import { isModuleNamespaceObject } from "node:util/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
Back to top