mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
// Loaded from https://deno.land/x/validasaur/src/rules/is_number.ts
|
|
|
|
|
|
import type { Validity } from "../types.ts";
|
|
import { invalid } from "../utils.ts";
|
|
|
|
export function isNumber(value: any): Validity {
|
|
if (typeof value !== "number") {
|
|
return invalid("isNumber", { value });
|
|
}
|
|
}
|