UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 872 B
{"version":3,"sources":["add/iterable-operators/defaultifempty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAwB,YAAe;IACxE,OAAO,cAAc,CAAI,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,cAAc,GAAG,mBAAmB,CAAC","file":"defaultifempty.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { defaultIfEmpty } from '../../iterable/operators/defaultifempty';\n\n/**\n * @ignore\n */\nexport function defaultIfEmptyProto<T>(this: IterableX<T>, defaultValue: T): IterableX<T> {\n return defaultIfEmpty<T>(defaultValue)(this);\n}\n\nIterableX.prototype.defaultIfEmpty = defaultIfEmptyProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n defaultIfEmpty: typeof defaultIfEmptyProto;\n }\n}\n"]}