UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 737 B
{"version":3,"sources":["add/iterable-operators/toarray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,OAAO,GAAG,YAAY,CAAC","file":"toarray.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { toArray } from '../../iterable/toarray';\n\n/**\n * @ignore\n */\nexport function toArrayProto<TSource>(this: IterableX<TSource>): TSource[] {\n return toArray(this);\n}\n\nIterableX.prototype.toArray = toArrayProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n toArray: typeof toArrayProto;\n }\n}\n"]}