Hooks
Functions
acronym
Fuction to get acronym from a name string.
Example
import acronym from '@/utils/acronym'
const name = acronym('Vickie Kim')
// output: 'VK'
Params
| param | Description | Type | Default |
|---|---|---|---|
| name | Name string | string | '' |
Return
| return | Description | Type | Default |
|---|---|---|---|
| acronym | Acronym | string | - |