You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 364B

1234567891011
  1. /**
  2. * Appends a suffix to the display name.
  3. *
  4. * @param {string} displayName - The display name.
  5. * @param {string} suffix - Suffix that will be appended.
  6. * @returns {string} The formatted display name.
  7. */
  8. export function appendSuffix(displayName, suffix) {
  9. return `${displayName || suffix || ''}${
  10. displayName && suffix ? ` (${suffix})` : ''}`;
  11. }