Skip to content

Compute Initials #16

@MatthewCallis

Description

@MatthewCallis
    let initials = '';
    if (person.name) {
      initials = person.name.trim().split(' ');
      if (initials.length > 1) {
        initials = `${initials[0][0]}${initials[1][0]}`;
      } else if (initials.length === 1) {
        initials = initials[0][0];
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions