How come an empty string in a vue template is considered truthy?
<div>{{ "" ?? "empty string is not truthy" }}</div>
When using the nullish coalescing operator (??), only the empty string will be displayed. Unfortunately, I cannot use this operator to check for empty strings and instead have to resort to ternary operators:
<div>{{ "" ? "string empty" : "string not empty" }}</div>
It seems like "" ??
should be considered falsy, right?