RESTRICTED定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every flag in real use that the law restricts, each with the code of its place: Germany's national flag of 1935 to 1945. They are
kept out of variantsOf, out of every record's variants and out of the lists and downloads built from them, and out of the CDN
listing (/svg/), so that a picker, a quiz or a pack never offers one. A page that shows history asks for one by name. Frozen.
インポート
import { RESTRICTED } from "@johnmorrisdotca/hata/manifest";
定義
const RESTRICTED: readonly RestrictedVariant[] = deepFreeze(RESTRICTED_ROWS)
例
import { RESTRICTED } from "@johnmorrisdotca/hata/manifest";
console.log(RESTRICTED.map((one) => `${one.code} ${one.variant.id}`)); // ["DE swastika-1935"]
console.log(RESTRICTED[0]?.variant.restricted?.allowedFor); // "education and history"[ 'DE swastika-1935' ]
education and history出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。