getProvinceFromItalianPostcode関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The province a postcode is in, by its sigla (RM): the one most of GeoNames' places for the postcode are in.
インポート
import { getProvinceFromItalianPostcode } from "@johnmorrisdotca/address-plus/it";
定義
function getProvinceFromItalianPostcode(postcode: string): string | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
postcode | string | The postcode. |
戻り値
string | undefined
The province's sigla, or undefined when the list does not have the postcode.
例
import { getProvinceFromItalianPostcode } from "@johnmorrisdotca/address-plus/it";
console.log(["00186", "20121", "80132", "10121", "00000"].map(getProvinceFromItalianPostcode));
// → ["RM","MI","NA","TO",null][ 'RM', 'MI', 'NA', 'TO', undefined ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。