Skip to content

assertcheck v1.0.0


assertcheck / assert / flat

Function: flat()

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

Defined in: src/assert.ts:1339

Asserts that the array has no nesting (all elements are non-array).

Parameters

ParameterType
arrunknown[]
opts?Opts

Returns

void

Example

ts
`assert.flat(tags, "tags array must be flat")`

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