Function filter

  • Iterator filter

    Parameters

    • iterator: AsyncIterable<string, any, any>
    • Optionalpattern: string | RegExp

      String pattern to match

    • count: number = Infinity

      Result count

    Returns AsyncGenerator<string, void, unknown>