Namespace blank

It's not nice to show null or undefined to user, use blank to hide nullables under user friendly string.

Encourages usage of Nullish Coalescing operator... Fyi:

  • to multiply signs use string.repeat api
  • to remove leading and trailing whitespaces use string.trim api

Example

export const sameBlank = blank.emDash;
<p>{`username: ${user.name ?? sameBlank}`}</p>
<p>{`country: ${user.country ?? sameBlank}`}</p>

Index

Variables

Functions

Generated using TypeDoc