UNPKG

@itwin/presentation-hierarchies

Version:

A package for creating hierarchies based on data in iTwin.js iModels.

16 lines 623 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import { tap } from "rxjs"; /** @internal */ export function tapOnce(observer) { let first = true; return (source) => source.pipe(tap(() => { if (first) { first = false; observer(); } })); } //# sourceMappingURL=TapOnce.js.map