openmrs-esm-core

O3 Framework / inRange

Function: inRange()

inRange(min, max): Validator

Defined in: packages/framework/esm-config/src/validators/validators.ts:11

Verifies that the value is between the provided minimum and maximum

Parameters

min

number

Minimum acceptable value

max

number

Maximum acceptable value

Returns

Validator

A validator function that checks if a value is within the specified range.