Skip to main content
Module

x/funky/mod.ts>isArrayOf

Getting funky with Deno!
Latest
variable isArrayOf
import { isArrayOf } from "https://deno.land/x/funky@v0.3.2/mod.ts";

Type-safe check whether the specified @array contains only elements of type T. The specified @checkType function is invoked on every item in the @array to determine whether it is of the expected type.

type

<T>(array: any, checkType: (value: any) => value is T) => array is T[]