Skip to content

assertcheck v1.0.0


assertcheck / assert / increasing

Function: increasing() ​

ts
function increasing(arr, opts?): void;

Defined in: src/assert.ts:1166

Asserts that numeric array elements are strictly increasing.

Parameters ​

ParameterType
arrnumber[]
opts?Opts

Returns ​

void

Example ​

ts
`assert.increasing(versions, "versions must increase")`

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