Add a helper function for visible empty states

This commit is contained in:
Oliver-Akins 2024-03-22 20:23:51 -06:00
parent 18cdc2addc
commit 55a64afe02

View file

@ -21,6 +21,7 @@ export default {
"dd-stringify": v => JSON.stringify(v, null, ` `),
"dd-empty": v => v.length == 0,
"dd-set-has": (s, k) => s.has(k),
"dd-empty-state": (v) => v ?? `--`,
// Logic helpers
"eq": (a, b) => a == b,