@@ -691,8 +691,8 @@ changes:
691
691
* ` object ` {any} Any JavaScript primitive or ` Object ` .
692
692
* ` options ` {Object}
693
693
* ` showHidden ` {boolean} If ` true ` , ` object ` 's non-enumerable symbols and
694
- properties are included in the formatted result. [ ` WeakMap ` ] [ ] and
695
- [ ` WeakSet ` ] [ ] entries are also included as well as user defined prototype
694
+ properties are included in the formatted result. { WeakMap} and
695
+ { WeakSet} entries are also included as well as user defined prototype
696
696
properties (excluding method properties). ** Default:** ` false ` .
697
697
* ` depth ` {number} Specifies the number of times to recurse while formatting
698
698
` object ` . This is useful for inspecting large objects. To recurse up to
@@ -707,8 +707,7 @@ changes:
707
707
* ` showProxy ` {boolean} If ` true ` , ` Proxy ` inspection includes
708
708
the [ ` target ` and ` handler ` ] [ ] objects. ** Default:** ` false ` .
709
709
* ` maxArrayLength ` {integer} Specifies the maximum number of ` Array ` ,
710
- [ ` TypedArray ` ] [ ] , [ ` Map ` ] [ ] , [ ` Set ` ] [ ] , [ ` WeakMap ` ] [ ] ,
711
- and [ ` WeakSet ` ] [ ] elements to include when formatting.
710
+ {TypedArray}, {Map}, {WeakMap}, and {WeakSet} elements to include when formatting.
712
711
Set to ` null ` or ` Infinity ` to show all elements. Set to ` 0 ` or
713
712
negative to show no elements. ** Default:** ` 100 ` .
714
713
* ` maxStringLength ` {integer} Specifies the maximum number of characters to
@@ -839,10 +838,10 @@ console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 }));
839
838
// single line.
840
839
```
841
840
842
- The ` showHidden ` option allows [ ` WeakMap ` ] [ ] and [ ` WeakSet ` ] [ ] entries to be
841
+ The ` showHidden ` option allows { WeakMap} and { WeakSet} entries to be
843
842
inspected. If there are more entries than ` maxArrayLength ` , there is no
844
843
guarantee which entries are displayed. That means retrieving the same
845
- [ ` WeakSet ` ] [ ] entries twice may result in different output. Furthermore, entries
844
+ { WeakSet} entries twice may result in different output. Furthermore, entries
846
845
with no remaining strong references may be garbage collected at any time.
847
846
848
847
``` js
@@ -2335,8 +2334,8 @@ added: v10.0.0
2335
2334
* ` value` {any}
2336
2335
* Returns: {boolean}
2337
2336
2338
- Returns ` true ` if the value is a built-in [ ` ArrayBuffer ` ][] or
2339
- [ ` SharedArrayBuffer ` ][] instance.
2337
+ Returns ` true ` if the value is a built-in { ArrayBuffer} or
2338
+ { SharedArrayBuffer} instance.
2340
2339
2341
2340
See also [` util .types .isArrayBuffer ()` ][] and
2342
2341
[` util .types .isSharedArrayBuffer ()` ][].
@@ -2355,8 +2354,8 @@ added: v10.0.0
2355
2354
* ` value` {any}
2356
2355
* Returns: {boolean}
2357
2356
2358
- Returns ` true ` if the value is an instance of one of the [ ` ArrayBuffer ` ][]
2359
- views, such as typed array objects or [ ` DataView ` ][] . Equivalent to
2357
+ Returns ` true ` if the value is an instance of one of the { ArrayBuffer}
2358
+ views, such as typed array objects or { DataView} . Equivalent to
2360
2359
[` ArrayBuffer .isView ()` ][].
2361
2360
2362
2361
` ` ` js
@@ -2394,8 +2393,8 @@ added: v10.0.0
2394
2393
* ` value` {any}
2395
2394
* Returns: {boolean}
2396
2395
2397
- Returns ` true ` if the value is a built-in [ ` ArrayBuffer ` ][] instance.
2398
- This does _not_ include [ ` SharedArrayBuffer ` ][] instances. Usually, it is
2396
+ Returns ` true ` if the value is a built-in { ArrayBuffer} instance.
2397
+ This does _not_ include { SharedArrayBuffer} instances. Usually, it is
2399
2398
desirable to test for both; See [` util .types .isAnyArrayBuffer ()` ][] for that.
2400
2399
2401
2400
` ` ` js
@@ -2535,7 +2534,7 @@ added: v10.0.0
2535
2534
* ` value` {any}
2536
2535
* Returns: {boolean}
2537
2536
2538
- Returns ` true ` if the value is a built-in [ ` DataView ` ][] instance.
2537
+ Returns ` true ` if the value is a built-in { DataView} instance.
2539
2538
2540
2539
` ` ` js
2541
2540
const ab = new ArrayBuffer (20 );
@@ -2554,7 +2553,7 @@ added: v10.0.0
2554
2553
* ` value` {any}
2555
2554
* Returns: {boolean}
2556
2555
2557
- Returns ` true ` if the value is a built-in [ ` Date ` ][] instance.
2556
+ Returns ` true ` if the value is a built-in { Date} instance.
2558
2557
2559
2558
` ` ` js
2560
2559
util .types .isDate (new Date ()); // Returns true
@@ -2615,7 +2614,7 @@ added: v10.0.0
2615
2614
* ` value` {any}
2616
2615
* Returns: {boolean}
2617
2616
2618
- Returns ` true ` if the value is a built-in [ ` Float32Array ` ][] instance.
2617
+ Returns ` true ` if the value is a built-in { Float32Array} instance.
2619
2618
2620
2619
` ` ` js
2621
2620
util .types .isFloat32Array (new ArrayBuffer ()); // Returns false
@@ -2632,7 +2631,7 @@ added: v10.0.0
2632
2631
* ` value` {any}
2633
2632
* Returns: {boolean}
2634
2633
2635
- Returns ` true ` if the value is a built-in [ ` Float64Array ` ][] instance.
2634
+ Returns ` true ` if the value is a built-in { Float64Array} instance.
2636
2635
2637
2636
` ` ` js
2638
2637
util .types .isFloat64Array (new ArrayBuffer ()); // Returns false
@@ -2689,7 +2688,7 @@ added: v10.0.0
2689
2688
* ` value` {any}
2690
2689
* Returns: {boolean}
2691
2690
2692
- Returns ` true ` if the value is a built-in [ ` Int8Array ` ][] instance.
2691
+ Returns ` true ` if the value is a built-in { Int8Array} instance.
2693
2692
2694
2693
` ` ` js
2695
2694
util .types .isInt8Array (new ArrayBuffer ()); // Returns false
@@ -2706,7 +2705,7 @@ added: v10.0.0
2706
2705
* ` value` {any}
2707
2706
* Returns: {boolean}
2708
2707
2709
- Returns ` true ` if the value is a built-in [ ` Int16Array ` ][] instance.
2708
+ Returns ` true ` if the value is a built-in { Int16Array} instance.
2710
2709
2711
2710
` ` ` js
2712
2711
util .types .isInt16Array (new ArrayBuffer ()); // Returns false
@@ -2723,7 +2722,7 @@ added: v10.0.0
2723
2722
* ` value` {any}
2724
2723
* Returns: {boolean}
2725
2724
2726
- Returns ` true ` if the value is a built-in [ ` Int32Array ` ][] instance.
2725
+ Returns ` true ` if the value is a built-in { Int32Array} instance.
2727
2726
2728
2727
` ` ` js
2729
2728
util .types .isInt32Array (new ArrayBuffer ()); // Returns false
@@ -2751,7 +2750,7 @@ added: v10.0.0
2751
2750
* ` value` {any}
2752
2751
* Returns: {boolean}
2753
2752
2754
- Returns ` true ` if the value is a built-in [ ` Map ` ][] instance.
2753
+ Returns ` true ` if the value is a built-in { Map} instance.
2755
2754
2756
2755
` ` ` js
2757
2756
util .types .isMap (new Map ()); // Returns true
@@ -2767,7 +2766,7 @@ added: v10.0.0
2767
2766
* Returns: {boolean}
2768
2767
2769
2768
Returns ` true ` if the value is an iterator returned for a built-in
2770
- [ ` Map ` ][] instance.
2769
+ { Map} instance.
2771
2770
2772
2771
` ` ` js
2773
2772
const map = new Map ();
@@ -2868,7 +2867,7 @@ added: v10.0.0
2868
2867
* ` value` {any}
2869
2868
* Returns: {boolean}
2870
2869
2871
- Returns ` true ` if the value is a built-in [ ` Promise ` ][] .
2870
+ Returns ` true ` if the value is a built-in { Promise} .
2872
2871
2873
2872
` ` ` js
2874
2873
util .types .isPromise (Promise .resolve (42 )); // Returns true
@@ -2883,7 +2882,7 @@ added: v10.0.0
2883
2882
* ` value` {any}
2884
2883
* Returns: {boolean}
2885
2884
2886
- Returns ` true ` if the value is a [ ` Proxy ` ][] instance.
2885
+ Returns ` true ` if the value is a { Proxy} instance.
2887
2886
2888
2887
` ` ` js
2889
2888
const target = {};
@@ -2917,7 +2916,7 @@ added: v10.0.0
2917
2916
* ` value` {any}
2918
2917
* Returns: {boolean}
2919
2918
2920
- Returns ` true ` if the value is a built-in [ ` Set ` ][] instance.
2919
+ Returns ` true ` if the value is a built-in { Set} instance.
2921
2920
2922
2921
` ` ` js
2923
2922
util .types .isSet (new Set ()); // Returns true
@@ -2933,7 +2932,7 @@ added: v10.0.0
2933
2932
* Returns: {boolean}
2934
2933
2935
2934
Returns ` true ` if the value is an iterator returned for a built-in
2936
- [ ` Set ` ][] instance.
2935
+ { Set} instance.
2937
2936
2938
2937
` ` ` js
2939
2938
const set = new Set ();
@@ -2952,8 +2951,8 @@ added: v10.0.0
2952
2951
* ` value` {any}
2953
2952
* Returns: {boolean}
2954
2953
2955
- Returns ` true ` if the value is a built-in [ ` SharedArrayBuffer ` ][] instance.
2956
- This does _not_ include [ ` ArrayBuffer ` ][] instances. Usually, it is
2954
+ Returns ` true ` if the value is a built-in { SharedArrayBuffer} instance.
2955
+ This does _not_ include { ArrayBuffer} instances. Usually, it is
2957
2956
desirable to test for both; See [` util .types .isAnyArrayBuffer ()` ][] for that.
2958
2957
2959
2958
` ` ` js
@@ -3005,7 +3004,7 @@ added: v10.0.0
3005
3004
* ` value` {any}
3006
3005
* Returns: {boolean}
3007
3006
3008
- Returns ` true ` if the value is a built-in [ ` TypedArray` ][] instance.
3007
+ Returns ` true ` if the value is a built-in { TypedArray} instance.
3009
3008
3010
3009
` ` ` js
3011
3010
util .types .isTypedArray (new ArrayBuffer ()); // Returns false
@@ -3024,7 +3023,7 @@ added: v10.0.0
3024
3023
* ` value` {any}
3025
3024
* Returns: {boolean}
3026
3025
3027
- Returns ` true ` if the value is a built-in [ ` Uint8Array ` ][] instance.
3026
+ Returns ` true ` if the value is a built-in { Uint8Array} instance.
3028
3027
3029
3028
` ` ` js
3030
3029
util .types .isUint8Array (new ArrayBuffer ()); // Returns false
@@ -3041,7 +3040,7 @@ added: v10.0.0
3041
3040
* ` value` {any}
3042
3041
* Returns: {boolean}
3043
3042
3044
- Returns ` true ` if the value is a built-in [ ` Uint8ClampedArray ` ][] instance.
3043
+ Returns ` true ` if the value is a built-in { Uint8ClampedArray} instance.
3045
3044
3046
3045
` ` ` js
3047
3046
util .types .isUint8ClampedArray (new ArrayBuffer ()); // Returns false
@@ -3058,7 +3057,7 @@ added: v10.0.0
3058
3057
* ` value` {any}
3059
3058
* Returns: {boolean}
3060
3059
3061
- Returns ` true ` if the value is a built-in [ ` Uint16Array ` ][] instance.
3060
+ Returns ` true ` if the value is a built-in { Uint16Array} instance.
3062
3061
3063
3062
` ` ` js
3064
3063
util .types .isUint16Array (new ArrayBuffer ()); // Returns false
@@ -3075,7 +3074,7 @@ added: v10.0.0
3075
3074
* ` value` {any}
3076
3075
* Returns: {boolean}
3077
3076
3078
- Returns ` true ` if the value is a built-in [ ` Uint32Array ` ][] instance.
3077
+ Returns ` true ` if the value is a built-in { Uint32Array} instance.
3079
3078
3080
3079
` ` ` js
3081
3080
util .types .isUint32Array (new ArrayBuffer ()); // Returns false
@@ -3092,7 +3091,7 @@ added: v10.0.0
3092
3091
* ` value` {any}
3093
3092
* Returns: {boolean}
3094
3093
3095
- Returns ` true ` if the value is a built-in [ ` WeakMap ` ][] instance.
3094
+ Returns ` true ` if the value is a built-in { WeakMap} instance.
3096
3095
3097
3096
` ` ` js
3098
3097
util .types .isWeakMap (new WeakMap ()); // Returns true
@@ -3107,7 +3106,7 @@ added: v10.0.0
3107
3106
* ` value` {any}
3108
3107
* Returns: {boolean}
3109
3108
3110
- Returns ` true ` if the value is a built-in [ ` WeakSet ` ][] instance.
3109
+ Returns ` true ` if the value is a built-in { WeakSet} instance.
3111
3110
3112
3111
` ` ` js
3113
3112
util .types .isWeakSet (new WeakSet ()); // Returns true
@@ -3250,7 +3249,7 @@ deprecated: v4.0.0
3250
3249
* ` object` {any}
3251
3250
* Returns: {boolean}
3252
3251
3253
- Returns ` true ` if the given ` object` is an [ ` Error ` ][] . Otherwise, returns
3252
+ Returns ` true ` if the given ` object` is an { Error} . Otherwise, returns
3254
3253
` false ` .
3255
3254
3256
3255
` ` ` js
@@ -3592,33 +3591,12 @@ util.log('Timestamped message.');
3592
3591
[` ' warning' ` ]: process.md#event-warning
3593
3592
[` Array .isArray ()` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
3594
3593
[` ArrayBuffer .isView ()` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView
3595
- [` ArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
3596
3594
[` Buffer .isBuffer ()` ]: buffer.md#static-method-bufferisbufferobj
3597
- [` DataView ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
3598
- [` Date ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
3599
- [` Error ` ]: errors.md#class-error
3600
- [` Float32Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array
3601
- [` Float64Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
3602
- [` Int16Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array
3603
- [` Int32Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array
3604
- [` Int8Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array
3605
3595
[` JSON .stringify ()` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
3606
3596
[` MIMEparams` ]: #class-utilmimeparams
3607
- [` Map ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
3608
3597
[` Object .assign ()` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
3609
3598
[` Object .freeze ()` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
3610
- [` Promise ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
3611
- [` Proxy ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
3612
3599
[` Runtime .ScriptId ` ]: https://chromedevtools.github.io/devtools-protocol/1-3/Runtime/#type-ScriptId
3613
- [` Set ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
3614
- [` SharedArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
3615
- [` TypedArray` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
3616
- [` Uint16Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array
3617
- [` Uint32Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array
3618
- [` Uint8Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
3619
- [` Uint8ClampedArray ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray
3620
- [` WeakMap ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
3621
- [` WeakSet ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
3622
3600
[` assert .deepStrictEqual ()` ]: assert.md#assertdeepstrictequalactual-expected-message
3623
3601
[` console .error ()` ]: console.md#consoleerrordata-args
3624
3602
[` mime .toString ()` ]: #mimetostring
0 commit comments