mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +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 });
|
|
}
|
|
}
|