Node.js v18.12.1 documentation


Table of contents目录

Assert断言#

Stability: 2 - Stable

Source Code: lib/assert.js

The node:assert module provides a set of assertion functions for verifying invariants.node:assert模块提供了一组用于验证不变量的断言函数。