function firstProblem
firstProblem<T>(check: (item: T) =>
string
| null
| Promise<string | null>
): unknown

Check items in order and stop at the first reported problem.

Type Parameters

Parameters

check: (item: T) =>
string
| null
| Promise<string | null>

Return Type

unknown

Usage

import { firstProblem } from "doc.ts";