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

      Parameters

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

      Returns asserts input is { length: number }

      assertIsLengthAware('hello'); // does not throw, strings have a numeric length
      assertIsLengthAware(42); // throws TypeError: input is not length aware