@webdeveric/utils
    Preparing search index...
    • Assert that input has a numeric size property.

      Parameters

      • input: unknown
      • error: string | Error = 'input is not size aware'

      Returns asserts input is { size: number }

      assertIsSizeAware(new Set([1, 2, 3])); // does not throw
      assertIsSizeAware(42); // throws TypeError: input is not size aware