File tree 1 file changed +19
-0
lines changed
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
1287
1287
util .types .isMapIterator (map[Symbol .iterator ]()); // Returns true
1288
1288
```
1289
1289
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
+
1290
1308
### util.types.isNativeError(value)
1291
1309
<!-- YAML
1292
1310
added: v10.0.0
@@ -2127,6 +2145,7 @@ Deprecated predecessor of `console.log`.
2127
2145
[ Custom promisified functions ] : #util_custom_promisified_functions
2128
2146
[ Customizing `util.inspect` colors ] : #util_customizing_util_inspect_colors
2129
2147
[ Internationalization ] : intl.html
2148
+ [ Module Namespace Object ] : https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects
2130
2149
[ WHATWG Encoding Standard ] : https://encoding.spec.whatwg.org/
2131
2150
[ Common System Errors ] : errors.html#errors_common_system_errors
2132
2151
[ 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