Create a type predicate function that checks if input is a string whose length is between min and max, inclusive.
input
min
max
const isShortString = stringLength(1, 10);isShortString('hello'); // trueisShortString(''); // falseisShortString('this is too long'); // false Copy
const isShortString = stringLength(1, 10);isShortString('hello'); // trueisShortString(''); // falseisShortString('this is too long'); // false
Create a type predicate function that checks if
inputis a string whose length is betweenminandmax, inclusive.