7 lines
123 B
JavaScript
7 lines
123 B
JavaScript
import isInt from './isInt';
|
|
export default function isPort(str) {
|
|
return isInt(str, {
|
|
min: 0,
|
|
max: 65535
|
|
});
|
|
} |