fromIterable<T extends JSAny?> static method

  1. @JS('from')
JSIterator<T> fromIterable<T extends JSAny?>(
  1. JSIterableProtocol<T> object
)

Creates a proper iterator from an object that just implements the Iterable protocol.

This is equivalent to JSIterator.from(object.iterator).

Implementation

@JS('from')
external static JSIterator<T> fromIterable<T extends JSAny?>(
  JSIterableProtocol<T> object,
);