UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

15 lines 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bufferDebounce = bufferDebounce; const operators_1 = require("rxjs/operators"); /** * * @param duration */ function bufferDebounce(duration) { return (source) => { const sharedSource = source.pipe((0, operators_1.share)()); return sharedSource.pipe((0, operators_1.buffer)(sharedSource.pipe((0, operators_1.debounceTime)(duration)))); }; } //# sourceMappingURL=buffer-debounce.js.map