UNPKG

702 BSource Map (JSON)View Raw
1{"version":3,"sources":["iterable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,aAAuB,SAAQ,SAAkB;IACrD,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChB,oCAAoC;IACtC,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,KAAK;IACnB,OAAO,IAAI,aAAa,EAAW,CAAC;AACtC,CAAC","file":"empty.js","sourcesContent":["import { IterableX } from './iterablex';\n\nclass EmptyIterable<TSource> extends IterableX<TSource> {\n *[Symbol.iterator](): Iterator<TSource> {\n // eslint-disable-next-line no-empty\n }\n}\n\n/**\n * Returns an empty iterable.\n * @return {Iterable<T>} The empty iterable.\n */\nexport function empty<TSource>(): IterableX<TSource> {\n return new EmptyIterable<TSource>();\n}\n"]}
\No newline at end of file