Skip to content

assertcheck v1.0.0


assertcheck / assert / containsNone

Function: containsNone()

ts
function containsNone<T>(
   arr, 
   items, 
   opts?): void;

Defined in: src/assert.ts:1023

Asserts that none of items are present in arr.

Type Parameters

Type Parameter
T

Parameters

ParameterType
arrT[]
itemsT[]
opts?Opts

Returns

void

Example

ts
`assert.containsNone(errors, fatalErrors, "fatal error occurred")`

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