@webdeveric/utils
    Preparing search index...
    • Create a type predicate function that checks if input is a string whose length is between min and max, inclusive.

      Type Parameters

      • Type extends string = string

      Parameters

      • min: number
      • max: number = Number.POSITIVE_INFINITY

      Returns TypePredicateFn<Type>

      const isShortString = stringLength(1, 10);
      isShortString('hello'); // true
      isShortString(''); // false
      isShortString('this is too long'); // false