diff --git a/doc/api/assert.md b/doc/api/assert.md index 6179caa27f016f..4da3e15125ecfe 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -134,7 +134,7 @@ changes: * `expected` {any} * `message` {any} -Similar to `assert.deepEqual()` with the following exceptions: +Identical to [`assert.deepEqual()`][] with the following exceptions: 1. Primitive values besides `NaN` are compared using the [Strict Equality Comparison][] ( `===` ). Set and Map values, Map keys and `NaN` are compared diff --git a/doc/api/util.md b/doc/api/util.md index 6619ee2ad60062..b13d02a8c0d22c 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -455,6 +455,21 @@ util.inspect.defaultOptions.maxArrayLength = null; console.log(arr); // logs the full array ``` +## util.isDeepStrictEqual(val1, val2) + + +* `val1` {any} +* `val2` {any} +* Returns: {string} + +Returns `true` if there is deep strict equality between `val` and `val2`. +Otherwise, returns `false`. + +See [`assert.deepStrictEqual()`][] for more information about deep strict +equality. + ## util.promisify(original)