Sha256: cd2d0e178e96818b38137df170a1963787d24484e2111820a833362d7cf00244

Contents?: true

Size: 760 Bytes

Versions: 49

Compression:

Stored size: 760 Bytes

Contents

"use strict";
var Subscriber_1 = require('../Subscriber');
var rxSubscriber_1 = require('../symbol/rxSubscriber');
var Observer_1 = require('../Observer');
function toSubscriber(nextOrObserver, error, complete) {
    if (nextOrObserver) {
        if (nextOrObserver instanceof Subscriber_1.Subscriber) {
            return nextOrObserver;
        }
        if (nextOrObserver[rxSubscriber_1.rxSubscriber]) {
            return nextOrObserver[rxSubscriber_1.rxSubscriber]();
        }
    }
    if (!nextOrObserver && !error && !complete) {
        return new Subscriber_1.Subscriber(Observer_1.empty);
    }
    return new Subscriber_1.Subscriber(nextOrObserver, error, complete);
}
exports.toSubscriber = toSubscriber;
//# sourceMappingURL=toSubscriber.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/util/toSubscriber.js
ilog-0.4.0 node_modules/rxjs/util/toSubscriber.js
ilog-0.3.3 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-18.0.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.21.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.20.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.19.1 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.19.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.18.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.17.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.16.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.15.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.14.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.13.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.12.2 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.12.1 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.12.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.11.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.10.0 node_modules/rxjs/util/toSubscriber.js
govuk_publishing_components-17.9.0 node_modules/rxjs/util/toSubscriber.js