fuc-new/doc/node_modules/lit-html/development/directives/when.js
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

9 lines
248 B
JavaScript

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