@itwin/presentation-hierarchies
Version:
A package for creating hierarchies based on data in iTwin.js iModels.
19 lines • 736 B
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.tapOnce = tapOnce;
const rxjs_1 = require("rxjs");
/** @internal */
function tapOnce(observer) {
let first = true;
return (source) => source.pipe((0, rxjs_1.tap)(() => {
if (first) {
first = false;
observer();
}
}));
}
//# sourceMappingURL=TapOnce.js.map