organisationTerms関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where the terms for an organisation's flag were read: the page, the day, and what they say. A flag is here only
where those terms let an MIT package carry it; NOTICE.md has the same sentences.
インポート
import { organisationTerms } from "@johnmorrisdotca/hata/organisations";
定義
function organisationTerms(id: string): { url: string; read: string; says: string; } | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | An organisation's id, in any case, with or without |
戻り値
{ url: string; read: string; says: string; } | null
{ url, read, says }, or null when the id has no flag here.
例
import { organisationTerms } from "@johnmorrisdotca/hata/organisations";
console.log(organisationTerms("org:eu")?.url); // "https://european-union.europa.eu/legal-notice_en"
console.log(organisationTerms("org:xx")); // nullhttps://european-union.europa.eu/legal-notice_en
null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。