Create a type predicate function that checks if input is a number or bigint within the inclusive range from min to max.
input
bigint
min
max
const isPositive = range(0, Infinity);isPositive(5); // trueisPositive(-1); // false Copy
const isPositive = range(0, Infinity);isPositive(5); // trueisPositive(-1); // false
Create a type predicate function that checks if
inputis a number orbigintwithin the inclusive range frommintomax.Example