Strict assertion mode is recommended

In Node, strict assertion mode is recommended over legacy assertion mode. Strict mode has two advantages:

Example usage in Typescript:

import { strict as assert } from 'assert'

assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5])

Would you like to connect? Subscribe via email or RSS , or follow me on Twitter!