Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/iterable

Index

References

Functions

References

Renames and re-exports isIterable

Functions

  • isIterable<T>(thing: any): thing is Iterable<T>
  • Checks if test is IterableIterator.

    example
     isIterable([]);           //=> true
    isIterable(new Set()); //=> true
    isIterable(new Map()); //=> true
    isIterable({}); //=> false

    Type parameters

    • T = any

    Parameters

    • thing: any

    Returns thing is Iterable<T>

Generated using TypeDoc