File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1287,6 +1287,24 @@ util.types.isMapIterator(map.entries()); // Returns true
12871287util .types .isMapIterator (map[Symbol .iterator ]()); // Returns true
12881288```
12891289
1290+ ### util.types.isModuleNamespaceObject(value)
1291+ <!-- YAML
1292+ added: v10.0.0
1293+ -->
1294+
1295+ * Returns: {boolean}
1296+
1297+ Returns ` true ` if the value is an instance of a [ Module Namespace Object] [ ] .
1298+
1299+ For example:
1300+
1301+ <!-- eslint-skip -->
1302+ ``` js
1303+ import * as ns from ' ./a.js' ;
1304+
1305+ util .types .isModuleNamespaceObject (ns); // Returns true
1306+ ```
1307+
12901308### util.types.isNativeError(value)
12911309<!-- YAML
12921310added: v10.0.0
@@ -2127,6 +2145,7 @@ Deprecated predecessor of `console.log`.
21272145[ Custom promisified functions ] : #util_custom_promisified_functions
21282146[ Customizing `util.inspect` colors ] : #util_customizing_util_inspect_colors
21292147[ Internationalization ] : intl.html
2148+ [ Module Namespace Object ] : https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects
21302149[ WHATWG Encoding Standard ] : https://encoding.spec.whatwg.org/
21312150[ Common System Errors ] : errors.html#errors_common_system_errors
21322151[ constructor ] : https://developer.mozilla.org/en-US/JavaScript/Reference/Global_Objects/Object/constructor
You can’t perform that action at this time.
0 commit comments