8 lines
166 B
TypeScript
8 lines
166 B
TypeScript
const testRange: (args: MinimalInputTestArgs) => boolean = ({
|
|
max,
|
|
min,
|
|
value,
|
|
}) => (value ? value >= min && value <= max : false);
|
|
|
|
export default testRange;
|