@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 867 B
Source Map (JSON)
{"version":3,"sources":["add/iterable-operators/single.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C;;GAEG;AACH,MAAM,UAAU,WAAW,CAEzB,OAAgC;IAEhC,OAAO,MAAM,CAAC,IAAI,EAAE,OAAc,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC","file":"single.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { single } from '../../iterable/single';\nimport { OptionalFindOptions } from '../../iterable/findoptions';\n\n/**\n * @ignore\n */\nexport function singleProto<T>(\n this: IterableX<T>,\n options?: OptionalFindOptions<T>\n): T | undefined {\n return single(this, options as any);\n}\n\nIterableX.prototype.single = singleProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n single: typeof singleProto;\n }\n}\n"]}