リファレンス · 星ごとの値の確かさ (位置・明るさ・色・視差・固有運動の出典と誤差、A・B・Cの等級)
gradeAtLeast関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a grade is at least as good as another: A is at least B, and B is at least B, but C is not at least B.
インポート
import { gradeAtLeast } from "@johnmorrisdotca/hoshi-stars/accuracy";
定義
function gradeAtLeast(grade: StarGrade, minimum: StarGrade): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
grade | StarGrade | The grade to test. |
minimum | StarGrade | The worst grade that is accepted. |
戻り値
boolean
true when grade is minimum or better.
例
import { gradeAtLeast } from "@johnmorrisdotca/hoshi-stars/accuracy";
console.log(gradeAtLeast("A", "B"), gradeAtLeast("C", "B")); // true falsetrue false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。