Skip to content

formatName

Hunam edited this page Mar 14, 2021 · 2 revisions

formatName


This function returns the formatted username(s) of the inputted username(s). The username input is an username or an array of usernames smaller than 10.

formatName(username: string | string[])

Example output:

// formatName(['_hunam', 'syriusgang'])
[ 
  "SyriusGang",
  "_Hunam"
]
Clone this wiki locally