@webdeveric/utils
    Preparing search index...

    Create a type predicate function that checks if input passes fn and has a length matching the given length or falling within the given range.

    const twoCharString = withLength(isString, 2);
    twoCharString('ab'); // true
    twoCharString('abc'); // false

    const stringRange = withLength(isString, [1, 3]);
    stringRange('a'); // true
    stringRange('abc'); // true
    stringRange('abcd'); // false