File manager - Edit - /usr/local/lib/node_modules/ghost-cli/node_modules/rxjs/dist/esm5/internal/operators/sample.js
Back
import { operate } from '../util/lift'; import { noop } from '../util/noop'; import { OperatorSubscriber } from './OperatorSubscriber'; export function sample(notifier) { return operate(function (source, subscriber) { var hasValue = false; var lastValue = null; source.subscribe(new OperatorSubscriber(subscriber, function (value) { hasValue = true; lastValue = value; })); var emit = function () { if (hasValue) { hasValue = false; var value = lastValue; lastValue = null; subscriber.next(value); } }; notifier.subscribe(new OperatorSubscriber(subscriber, emit, noop)); }); } //# sourceMappingURL=sample.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings