@webdeveric/utils
    Preparing search index...

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

    const twoItemSet = withSize(instanceOf(Set), 2);
    twoItemSet(new Set([1, 2])); // true
    twoItemSet(new Set([1])); // false

    const setWithRange = withSize(instanceOf(Set), [1, 3]);
    setWithRange(new Set([1, 2])); // true
    setWithRange(new Set()); // false