Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deepmergets/src/types/utils.ts>EveryIsArray

Deeply merge 2 or more objects respecting type information.
Latest
type alias EveryIsArray
import { type EveryIsArray } from "https://deno.land/x/deepmergets@v7.1.3/src/types/utils.ts";

Returns whether or not all the given types are arrays.

Type Parameters

Ts extends ReadonlyArray<unknown>
definition: Ts extends readonly [infer T1] ? IsArray<T1> : Ts extends readonly [infer Head, ...infer Rest] ? IsArray<Head> extends true ? Rest extends readonly [unknown, ...ReadonlyArray<unknown>] ? EveryIsArray<Rest> : false : false : false