Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-iterator-like/docs/types/index.d"

Index

Interfaces

Functions

Functions

Export assignment isIteratorLike

  • isIteratorLike(value: any): boolean
  • Tests if a value is iterator-like.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is iterator-like

    Example

    var it = {
        'next': function noop() {}
    };
    var bool = isIteratorLike( it );
    // returns true

    Example

    var bool = isIteratorLike( {} );
    // returns false

    Example

    var bool = isIteratorLike( null );
    // returns false