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 @@ -1271,6 +1271,24 @@ util.types.isMapIterator(map.entries()); // Returns true
1271
1271
util .types .isMapIterator (map[Symbol .iterator ]()); // Returns true
1272
1272
```
1273
1273
1274
+ ### util.types.isModuleNamespaceObject(value)
1275
+ <!-- YAML
1276
+ added: v10.0.0
1277
+ -->
1278
+
1279
+ * Returns: {boolean}
1280
+
1281
+ Returns ` true ` if the value is an instance of a [ Module Namespace Object] [ ] .
1282
+
1283
+ For example:
1284
+
1285
+ <!-- eslint-skip -->
1286
+ ``` js
1287
+ import * as ns from ' ./a.js' ;
1288
+
1289
+ util .types .isModuleNamespaceObject (ns); // Returns true
1290
+ ```
1291
+
1274
1292
### util.types.isNativeError(value)
1275
1293
<!-- YAML
1276
1294
added: v10.0.0
@@ -2111,6 +2129,7 @@ Deprecated predecessor of `console.log`.
2111
2129
[ Custom promisified functions ] : #util_custom_promisified_functions
2112
2130
[ Customizing `util.inspect` colors ] : #util_customizing_util_inspect_colors
2113
2131
[ Internationalization ] : intl.html
2132
+ [ Module Namespace Object ] : https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects
2114
2133
[ WHATWG Encoding Standard ] : https://encoding.spec.whatwg.org/
2115
2134
[ Common System Errors ] : errors.html#errors_common_system_errors
2116
2135
[ 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