| Skip to content | https://nodejs.org/api/assert.html#apicontent |
|
Node.js
| https://nodejs.org/ |
| About this documentation | https://nodejs.org/api/documentation.html |
| Usage and example | https://nodejs.org/api/synopsis.html |
| Assertion testing | https://nodejs.org/api/assert.html |
| Asynchronous context tracking | https://nodejs.org/api/async_context.html |
| Async hooks | https://nodejs.org/api/async_hooks.html |
| Buffer | https://nodejs.org/api/buffer.html |
| C++ addons | https://nodejs.org/api/addons.html |
| C/C++ addons with Node-API | https://nodejs.org/api/n-api.html |
| C++ embedder API | https://nodejs.org/api/embedding.html |
| Child processes | https://nodejs.org/api/child_process.html |
| Cluster | https://nodejs.org/api/cluster.html |
| Command-line options | https://nodejs.org/api/cli.html |
| Console | https://nodejs.org/api/console.html |
| Crypto | https://nodejs.org/api/crypto.html |
| Debugger | https://nodejs.org/api/debugger.html |
| Deprecated APIs | https://nodejs.org/api/deprecations.html |
| Diagnostics Channel | https://nodejs.org/api/diagnostics_channel.html |
| DNS | https://nodejs.org/api/dns.html |
| Domain | https://nodejs.org/api/domain.html |
| Environment Variables | https://nodejs.org/api/environment_variables.html |
| Errors | https://nodejs.org/api/errors.html |
| Events | https://nodejs.org/api/events.html |
| File system | https://nodejs.org/api/fs.html |
| Globals | https://nodejs.org/api/globals.html |
| HTTP | https://nodejs.org/api/http.html |
| HTTP/2 | https://nodejs.org/api/http2.html |
| HTTPS | https://nodejs.org/api/https.html |
| Inspector | https://nodejs.org/api/inspector.html |
| Internationalization | https://nodejs.org/api/intl.html |
| Modules: CommonJS modules | https://nodejs.org/api/modules.html |
| Modules: ECMAScript modules | https://nodejs.org/api/esm.html |
| Modules: node:module API | https://nodejs.org/api/module.html |
| Modules: Packages | https://nodejs.org/api/packages.html |
| Modules: TypeScript | https://nodejs.org/api/typescript.html |
| Net | https://nodejs.org/api/net.html |
| OS | https://nodejs.org/api/os.html |
| Path | https://nodejs.org/api/path.html |
| Performance hooks | https://nodejs.org/api/perf_hooks.html |
| Permissions | https://nodejs.org/api/permissions.html |
| Process | https://nodejs.org/api/process.html |
| Punycode | https://nodejs.org/api/punycode.html |
| Query strings | https://nodejs.org/api/querystring.html |
| Readline | https://nodejs.org/api/readline.html |
| REPL | https://nodejs.org/api/repl.html |
| Report | https://nodejs.org/api/report.html |
| Single executable applications | https://nodejs.org/api/single-executable-applications.html |
| SQLite | https://nodejs.org/api/sqlite.html |
| Stream | https://nodejs.org/api/stream.html |
| String decoder | https://nodejs.org/api/string_decoder.html |
| Test runner | https://nodejs.org/api/test.html |
| Timers | https://nodejs.org/api/timers.html |
| TLS/SSL | https://nodejs.org/api/tls.html |
| Trace events | https://nodejs.org/api/tracing.html |
| TTY | https://nodejs.org/api/tty.html |
| UDP/datagram | https://nodejs.org/api/dgram.html |
| URL | https://nodejs.org/api/url.html |
| Utilities | https://nodejs.org/api/util.html |
| V8 | https://nodejs.org/api/v8.html |
| VM | https://nodejs.org/api/vm.html |
| WASI | https://nodejs.org/api/wasi.html |
| Web Crypto API | https://nodejs.org/api/webcrypto.html |
| Web Streams API | https://nodejs.org/api/webstreams.html |
| Worker threads | https://nodejs.org/api/worker_threads.html |
| Zlib | https://nodejs.org/api/zlib.html |
| Code repository and issue tracker | https://github.com/nodejs/node |
|
Table of contents
| https://nodejs.org/api/assert.html#toc-picker |
| Assert | https://nodejs.org/api/assert.html#assert |
| Strict assertion mode | https://nodejs.org/api/assert.html#strict-assertion-mode |
| Legacy assertion mode | https://nodejs.org/api/assert.html#legacy-assertion-mode |
| Class: assert.AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| new assert.AssertionError(options) | https://nodejs.org/api/assert.html#new-assertassertionerroroptions |
| Class: assert.Assert | https://nodejs.org/api/assert.html#class-assertassert |
| new assert.Assert([options]) | https://nodejs.org/api/assert.html#new-assertassertoptions |
| assert(value[, message]) | https://nodejs.org/api/assert.html#assertvalue-message |
| assert.deepEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details |
| assert.deepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details_1 |
| assert.doesNotMatch(string, regexp[, message]) | https://nodejs.org/api/assert.html#assertdoesnotmatchstring-regexp-message |
| assert.doesNotReject(asyncFn[, error][, message]) | https://nodejs.org/api/assert.html#assertdoesnotrejectasyncfn-error-message |
| assert.doesNotThrow(fn[, error][, message]) | https://nodejs.org/api/assert.html#assertdoesnotthrowfn-error-message |
| assert.equal(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertequalactual-expected-message |
| assert.fail([message]) | https://nodejs.org/api/assert.html#assertfailmessage |
| assert.ifError(value) | https://nodejs.org/api/assert.html#assertiferrorvalue |
| assert.match(string, regexp[, message]) | https://nodejs.org/api/assert.html#assertmatchstring-regexp-message |
| assert.notDeepEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotdeepequalactual-expected-message |
| assert.notDeepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotdeepstrictequalactual-expected-message |
| assert.notEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotequalactual-expected-message |
| assert.notStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotstrictequalactual-expected-message |
| assert.ok(value[, message]) | https://nodejs.org/api/assert.html#assertokvalue-message |
| assert.rejects(asyncFn[, error][, message]) | https://nodejs.org/api/assert.html#assertrejectsasyncfn-error-message |
| assert.strictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| assert.throws(fn[, error][, message]) | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| assert.partialDeepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertpartialdeepstrictequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details_2 |
|
Index
| https://nodejs.org/api/assert.html#gtoc-picker |
| About this documentation | https://nodejs.org/api/documentation.html |
| Usage and example | https://nodejs.org/api/synopsis.html |
| Index | https://nodejs.org/api/index.html |
| Assertion testing | https://nodejs.org/api/assert.html |
| Asynchronous context tracking | https://nodejs.org/api/async_context.html |
| Async hooks | https://nodejs.org/api/async_hooks.html |
| Buffer | https://nodejs.org/api/buffer.html |
| C++ addons | https://nodejs.org/api/addons.html |
| C/C++ addons with Node-API | https://nodejs.org/api/n-api.html |
| C++ embedder API | https://nodejs.org/api/embedding.html |
| Child processes | https://nodejs.org/api/child_process.html |
| Cluster | https://nodejs.org/api/cluster.html |
| Command-line options | https://nodejs.org/api/cli.html |
| Console | https://nodejs.org/api/console.html |
| Crypto | https://nodejs.org/api/crypto.html |
| Debugger | https://nodejs.org/api/debugger.html |
| Deprecated APIs | https://nodejs.org/api/deprecations.html |
| Diagnostics Channel | https://nodejs.org/api/diagnostics_channel.html |
| DNS | https://nodejs.org/api/dns.html |
| Domain | https://nodejs.org/api/domain.html |
| Environment Variables | https://nodejs.org/api/environment_variables.html |
| Errors | https://nodejs.org/api/errors.html |
| Events | https://nodejs.org/api/events.html |
| File system | https://nodejs.org/api/fs.html |
| Globals | https://nodejs.org/api/globals.html |
| HTTP | https://nodejs.org/api/http.html |
| HTTP/2 | https://nodejs.org/api/http2.html |
| HTTPS | https://nodejs.org/api/https.html |
| Inspector | https://nodejs.org/api/inspector.html |
| Internationalization | https://nodejs.org/api/intl.html |
| Modules: CommonJS modules | https://nodejs.org/api/modules.html |
| Modules: ECMAScript modules | https://nodejs.org/api/esm.html |
| Modules: node:module API | https://nodejs.org/api/module.html |
| Modules: Packages | https://nodejs.org/api/packages.html |
| Modules: TypeScript | https://nodejs.org/api/typescript.html |
| Net | https://nodejs.org/api/net.html |
| OS | https://nodejs.org/api/os.html |
| Path | https://nodejs.org/api/path.html |
| Performance hooks | https://nodejs.org/api/perf_hooks.html |
| Permissions | https://nodejs.org/api/permissions.html |
| Process | https://nodejs.org/api/process.html |
| Punycode | https://nodejs.org/api/punycode.html |
| Query strings | https://nodejs.org/api/querystring.html |
| Readline | https://nodejs.org/api/readline.html |
| REPL | https://nodejs.org/api/repl.html |
| Report | https://nodejs.org/api/report.html |
| Single executable applications | https://nodejs.org/api/single-executable-applications.html |
| SQLite | https://nodejs.org/api/sqlite.html |
| Stream | https://nodejs.org/api/stream.html |
| String decoder | https://nodejs.org/api/string_decoder.html |
| Test runner | https://nodejs.org/api/test.html |
| Timers | https://nodejs.org/api/timers.html |
| TLS/SSL | https://nodejs.org/api/tls.html |
| Trace events | https://nodejs.org/api/tracing.html |
| TTY | https://nodejs.org/api/tty.html |
| UDP/datagram | https://nodejs.org/api/dgram.html |
| URL | https://nodejs.org/api/url.html |
| Utilities | https://nodejs.org/api/util.html |
| V8 | https://nodejs.org/api/v8.html |
| VM | https://nodejs.org/api/vm.html |
| WASI | https://nodejs.org/api/wasi.html |
| Web Crypto API | https://nodejs.org/api/webcrypto.html |
| Web Streams API | https://nodejs.org/api/webstreams.html |
| Worker threads | https://nodejs.org/api/worker_threads.html |
| Zlib | https://nodejs.org/api/zlib.html |
| Code repository and issue tracker | https://github.com/nodejs/node |
|
Other versions
| https://nodejs.org/api/assert.html#alt-docs |
| 25.x | https://nodejs.org/docs/latest-v25.x/api/assert.html |
| 24.x LTS | https://nodejs.org/docs/latest-v24.x/api/assert.html |
| 23.x | https://nodejs.org/docs/latest-v23.x/api/assert.html |
| 22.x LTS | https://nodejs.org/docs/latest-v22.x/api/assert.html |
| 21.x | https://nodejs.org/docs/latest-v21.x/api/assert.html |
| 20.x LTS | https://nodejs.org/docs/latest-v20.x/api/assert.html |
| 19.x | https://nodejs.org/docs/latest-v19.x/api/assert.html |
| 18.x | https://nodejs.org/docs/latest-v18.x/api/assert.html |
| 17.x | https://nodejs.org/docs/latest-v17.x/api/assert.html |
| 16.x | https://nodejs.org/docs/latest-v16.x/api/assert.html |
| 15.x | https://nodejs.org/docs/latest-v15.x/api/assert.html |
| 14.x | https://nodejs.org/docs/latest-v14.x/api/assert.html |
| 13.x | https://nodejs.org/docs/latest-v13.x/api/assert.html |
| 12.x | https://nodejs.org/docs/latest-v12.x/api/assert.html |
| 11.x | https://nodejs.org/docs/latest-v11.x/api/assert.html |
| 10.x | https://nodejs.org/docs/latest-v10.x/api/assert.html |
| 9.x | https://nodejs.org/docs/latest-v9.x/api/assert.html |
| 8.x | https://nodejs.org/docs/latest-v8.x/api/assert.html |
| 7.x | https://nodejs.org/docs/latest-v7.x/api/assert.html |
| 6.x | https://nodejs.org/docs/latest-v6.x/api/assert.html |
| 5.x | https://nodejs.org/docs/latest-v5.x/api/assert.html |
| 4.x | https://nodejs.org/docs/latest-v4.x/api/assert.html |
| 0.12.x | https://nodejs.org/docs/latest-v0.12.x/api/assert.html |
| 0.10.x | https://nodejs.org/docs/latest-v0.10.x/api/assert.html |
|
Options
| https://nodejs.org/api/assert.html#options-picker |
| View on single page | https://nodejs.org/api/all.html |
| View as JSON | https://nodejs.org/api/assert.json |
| Edit on GitHub | https://github.com/nodejs/node/edit/main/doc/api/assert.md |
| Assert | https://nodejs.org/api/assert.html#assert |
| Strict assertion mode | https://nodejs.org/api/assert.html#strict-assertion-mode |
| Legacy assertion mode | https://nodejs.org/api/assert.html#legacy-assertion-mode |
| Class: assert.AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| new assert.AssertionError(options) | https://nodejs.org/api/assert.html#new-assertassertionerroroptions |
| Class: assert.Assert | https://nodejs.org/api/assert.html#class-assertassert |
| new assert.Assert([options]) | https://nodejs.org/api/assert.html#new-assertassertoptions |
| assert(value[, message]) | https://nodejs.org/api/assert.html#assertvalue-message |
| assert.deepEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details |
| assert.deepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details_1 |
| assert.doesNotMatch(string, regexp[, message]) | https://nodejs.org/api/assert.html#assertdoesnotmatchstring-regexp-message |
| assert.doesNotReject(asyncFn[, error][, message]) | https://nodejs.org/api/assert.html#assertdoesnotrejectasyncfn-error-message |
| assert.doesNotThrow(fn[, error][, message]) | https://nodejs.org/api/assert.html#assertdoesnotthrowfn-error-message |
| assert.equal(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertequalactual-expected-message |
| assert.fail([message]) | https://nodejs.org/api/assert.html#assertfailmessage |
| assert.ifError(value) | https://nodejs.org/api/assert.html#assertiferrorvalue |
| assert.match(string, regexp[, message]) | https://nodejs.org/api/assert.html#assertmatchstring-regexp-message |
| assert.notDeepEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotdeepequalactual-expected-message |
| assert.notDeepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotdeepstrictequalactual-expected-message |
| assert.notEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotequalactual-expected-message |
| assert.notStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertnotstrictequalactual-expected-message |
| assert.ok(value[, message]) | https://nodejs.org/api/assert.html#assertokvalue-message |
| assert.rejects(asyncFn[, error][, message]) | https://nodejs.org/api/assert.html#assertrejectsasyncfn-error-message |
| assert.strictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| assert.throws(fn[, error][, message]) | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| assert.partialDeepStrictEqual(actual, expected[, message]) | https://nodejs.org/api/assert.html#assertpartialdeepstrictequalactual-expected-message |
| Comparison details | https://nodejs.org/api/assert.html#comparison-details_2 |
| # | https://nodejs.org/api/assert.html#assert |
| Stability: 2 | https://nodejs.org/api/documentation.html#stability-index |
| lib/assert.js | https://github.com/nodejs/node/blob/v25.2.1/lib/assert.js |
| # | https://nodejs.org/api/assert.html#strict-assertion-mode |
| assert.deepEqual() | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| getColorDepth() | https://nodejs.org/api/tty.html#writestreamgetcolordepthenv |
| # | https://nodejs.org/api/assert.html#legacy-assertion-mode |
| == operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality |
| assert.deepEqual() | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| assert.equal() | https://nodejs.org/api/assert.html#assertequalactual-expected-message |
| assert.notDeepEqual() | https://nodejs.org/api/assert.html#assertnotdeepequalactual-expected-message |
| assert.notEqual() | https://nodejs.org/api/assert.html#assertnotequalactual-expected-message |
| assert.deepEqual() | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| # | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://nodejs.org/api/errors.html#class-error |
| # | https://nodejs.org/api/assert.html#new-assertassertionerroroptions |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| assert.strictEqual() | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| assert.strictEqual() | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#boolean_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| # | https://nodejs.org/api/assert.html#class-assertassert |
| # | https://nodejs.org/api/assert.html#new-assertassertoptions |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#boolean_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#boolean_type |
| # | https://nodejs.org/api/assert.html#assertvalue-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.ok() | https://nodejs.org/api/assert.html#assertokvalue-message |
| # | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| Stability: 3 | https://nodejs.org/api/documentation.html#stability-index |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| assert.deepEqual() | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| # | https://nodejs.org/api/assert.html#comparison-details |
| == operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN |
| Type tags | https://tc39.github.io/ecma262/#sec-object.prototype.tostring |
| enumerable "own" properties | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| Object wrappers | https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set |
| [[Prototype]] | https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| == operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| SameValueZero | https://tc39.github.io/ecma262/#sec-samevaluezero |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#comparison-details_1 |
| Object.is() | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
| Type tags | https://tc39.github.io/ecma262/#sec-object.prototype.tostring |
| [[Prototype]] | https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots |
| === operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality |
| enumerable "own" properties | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol |
| Object wrappers | https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertdoesnotmatchstring-regexp-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertdoesnotrejectasyncfn-error-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| ERR_INVALID_RETURN_VALUE | https://nodejs.org/api/errors.html#err_invalid_return_value |
| Class | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| assert.throws() | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| assert.doesNotThrow() | https://nodejs.org/api/assert.html#assertdoesnotthrowfn-error-message |
| # | https://nodejs.org/api/assert.html#assertdoesnotthrowfn-error-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| Class | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| assert.throws() | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.strictEqual() | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| Stability: 3 | https://nodejs.org/api/documentation.html#stability-index |
| assert.strictEqual() | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| == operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertfailmessage |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertiferrorvalue |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| # | https://nodejs.org/api/assert.html#assertmatchstring-regexp-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertnotdeepequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.notDeepStrictEqual() | https://nodejs.org/api/assert.html#assertnotdeepstrictequalactual-expected-message |
| Stability: 3 | https://nodejs.org/api/documentation.html#stability-index |
| assert.notDeepStrictEqual() | https://nodejs.org/api/assert.html#assertnotdeepstrictequalactual-expected-message |
| assert.deepEqual() | https://nodejs.org/api/assert.html#assertdeepequalactual-expected-message |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertnotdeepstrictequalactual-expected-message |
| SameValueZero | https://tc39.github.io/ecma262/#sec-samevaluezero |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertnotequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.notStrictEqual() | https://nodejs.org/api/assert.html#assertnotstrictequalactual-expected-message |
| Stability: 3 | https://nodejs.org/api/documentation.html#stability-index |
| assert.notStrictEqual() | https://nodejs.org/api/assert.html#assertnotstrictequalactual-expected-message |
| != operator | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertnotstrictequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| Object.is() | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertokvalue-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| # | https://nodejs.org/api/assert.html#assertrejectsasyncfn-error-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| ERR_INVALID_RETURN_VALUE | https://nodejs.org/api/errors.html#err_invalid_return_value |
| assert.throws() | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| Class | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| assert.throws() | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| # | https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| Object.is() | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertthrowsfn-error-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| Class | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |
| AssertionError | https://nodejs.org/api/assert.html#class-assertassertionerror |
| # | https://nodejs.org/api/assert.html#assertpartialdeepstrictequalactual-expected-message |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| assert.deepStrictEqual() | https://nodejs.org/api/assert.html#assertdeepstrictequalactual-expected-message |
| # | https://nodejs.org/api/assert.html#comparison-details_2 |
| Object.is() | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
| Type tags | https://tc39.github.io/ecma262/#sec-object.prototype.tostring |
| [[Prototype]] | https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots |
| enumerable "own" properties | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol |
| Object wrappers | https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp |