1
This commit is contained in:
1 parent
1fe8673f62
commit
6adbc04d4b
12814 files changed
+2522618
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
import { nothing } from '../lit-html.js';
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
/**
|
||||
* For AttributeParts, sets the attribute if the value is defined and removes
|
||||
* the attribute if the value is undefined.
|
||||
*
|
||||
* For other part types, this directive is a no-op.
|
||||
*/
|
||||
const ifDefined = (value) => value ?? nothing;
|
||||
|
||||
export { ifDefined };
|
||||
//# sourceMappingURL=if-defined.js.map
|
||||
Reference in new issue
Block a user