when.js 282 B

123456789
  1. /**
  2. * @license
  3. * Copyright 2021 Google LLC
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. export function when(condition, trueCase, falseCase) {
  7. return condition ? trueCase() : falseCase === null || falseCase === void 0 ? void 0 : falseCase();
  8. }
  9. //# sourceMappingURL=when.js.map