mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
10 lines
242 B
TypeScript
10 lines
242 B
TypeScript
|
// Loaded from https://deno.land/x/segno@v1.1.0/lib/validations/isPort.ts
|
||
|
|
||
|
|
||
|
// @ts-ignore allowing typedoc to build
|
||
|
import { isInt } from './isInt.ts';
|
||
|
|
||
|
export const isPort = (str: string) => {
|
||
|
return isInt(str, { min: 0, max: 65535 });
|
||
|
};
|