abbreviate関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A short name for a small box: the initials of a name of several words ("NYR"), else its first three letters; capitals.
インポート
import { abbreviate } from "@johnmorrisdotca/taisen-brackets";
定義
function abbreviate(name: string): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
name | string | The team's name. |
戻り値
string
The abbreviation, in capitals.
例
import { abbreviate } from "@johnmorrisdotca/taisen-brackets";
console.log(abbreviate("Northern Owls"), abbreviate("Aurora"));NO AUR出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。