UNPKG

816 BSource Map (JSON)View Raw
1{"version":3,"sources":["iterable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,aAAc,SAAQ,SAAgB;IAC1C,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChB,oCAAoC;IACtC,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,KAAK;IACnB,OAAO,IAAI,aAAa,EAAE,CAAC;AAC7B,CAAC","file":"empty.js","sourcesContent":["import { IterableX } from './iterablex';\n\nclass EmptyIterable extends IterableX<never> {\n *[Symbol.iterator](): Iterator<never> {\n // eslint-disable-next-line no-empty\n }\n}\n\n/**\n * Returns an empty iterable sequence.\n *\n * @export\n * @template TSource The type used for the iterable type parameter of the resulting sequence.\n * @returns {IterableX<never>} An iterable sequence with no elements.\n */\nexport function empty(): IterableX<never> {\n return new EmptyIterable();\n}\n"]}
\No newline at end of file