Function size

  • Returns the size of the passed-in iterator, consuming it in the process.

    Type Parameters

    • Iter extends AnyIt<unknown>

    Parameters

    Returns AnyItResult<Iter, number>

    Example

    // Returns 5
    it.reduce('hello')