9 lines
282 B
JavaScript
9 lines
282 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
export function when(condition, trueCase, falseCase) {
|
|
return condition ? trueCase() : falseCase === null || falseCase === void 0 ? void 0 : falseCase();
|
|
}
|
|
//# sourceMappingURL=when.js.map
|