jccp_a/vuepress/node_modules/lit-html/node/development/directives/when.js
hellcat ac91e1fbe4 1
2025-11-12 17:57:30 +08:00

12 lines
260 B
JavaScript

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