Function inIterable

  • Checks if a value is in an iterable. Compares using ===. Check is done in O(n).

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>

      Iterable to check.

    • value: T

      Value to check for.

    Returns boolean

    Whether the value is in the iterable.

Generated using TypeDoc