Reference · Draw a bracket, a table or a road to the final
abbreviatefunction
A short name for a small box: the initials of a name of several words ("NYR"), else its first three letters; capitals.
Import it
import { abbreviate } from "@johnmorrisdotca/taisen-brackets";
Definition
function abbreviate(name: string): string
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The team's name. |
Returns
string
The abbreviation, in capitals.
Examples
import { abbreviate } from "@johnmorrisdotca/taisen-brackets";
console.log(abbreviate("Northern Owls"), abbreviate("Aurora"));NO AURWhat it prints (run when this page was built)