Skip to content

assertcheck v1.0.0


assertcheck / assert / zero

Function: zero()

ts
function zero(n, opts?): void;

Defined in: src/assert.ts:549

Asserts that n is exactly 0.

Parameters

ParameterType
nnumber
opts?Opts

Returns

void

Example

ts
`assert.zero(remainder, "no remainder expected")`

Released under the Apache 2.0 License. Built by Vagabond Studio — senior-only for growing companies.