Skip to content

assertcheck v1.0.0


assertcheck / assert / longerThan

Function: longerThan() ​

ts
function longerThan<T>(
   arr, 
   n, 
   opts?): void;

Defined in: src/assert.ts:786

Asserts that the array has more than n elements.

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
arrT[]
nnumber
opts?Opts

Returns ​

void

Example ​

ts
`assert.longerThan(results, 0, "must have at least one result")`

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