findFrenchDepartment関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Finds a department of France by its code (75, 2A, 971) or its name (Paris, Haute-Corse), without regard to
letter case or accents.
インポート
import { findFrenchDepartment } from "@johnmorrisdotca/address-plus/fr";
定義
function findFrenchDepartment(text: string): FrenchDepartment | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | The code or the name. |
戻り値
FrenchDepartment | null
The department, or null when nothing matches.
例
import { findFrenchDepartment } from "@johnmorrisdotca/address-plus/fr";
console.log(findFrenchDepartment("haute-corse")?.code);
// → "2B"2B出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。