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
| Parameter | Type |
|---|---|
arr | number[] |
opts? | Opts |
Returns
void
Example
ts
`assert.increasing(versions, "versions must increase")`