Skip to main content

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
47%
Published
2 months ago (0.1.0)
function isArrayOf
isArrayOf<T>(
value: unknown,
predicate: (value: unknown) => value is T,
): value is T[]

Type Parameters

Parameters

value: unknown
predicate: (value: unknown) => value is T

Return Type

value is T[]

Add Package

deno add @positron/ts-utils

Import symbol

import { isArrayOf } from "@positron/ts-utils";

Add Package

npx jsr add @positron/ts-utils

Import symbol

import { isArrayOf } from "@positron/ts-utils";

Add Package

yarn dlx jsr add @positron/ts-utils

Import symbol

import { isArrayOf } from "@positron/ts-utils";

Add Package

pnpm dlx jsr add @positron/ts-utils

Import symbol

import { isArrayOf } from "@positron/ts-utils";

Add Package

bunx jsr add @positron/ts-utils

Import symbol

import { isArrayOf } from "@positron/ts-utils";