mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
// Loaded from https://deno.land/x/validasaur/src/rules/is_array.ts
|
|
|
|
|
|
import type { Validity } from "../types.ts";
|
|
import { invalid } from "../utils.ts";
|
|
|
|
export function isArray(value: any): Validity {
|
|
if (false === value instanceof Array) {
|
|
return invalid("isArray", { value });
|
|
}
|
|
}
|