Skip to content

Instantly share code, notes, and snippets.

@falsandtru
falsandtru / ExIterable.ts
Created March 3, 2016 18:39 — forked from tetsuharuohzeki/ExIterable.ts
Extentions for ECMA262 6th iterator
class ExIterable<T> implements Iterable<T> {
protected _source: Iterable<any>; // cheat to drop type param `R`.
protected _operator: Operator<any, T>; // cheat to drop type param `R`.
constructor(source: Iterable<T> = null) {
this._source = source;
this._operator = null;
}