inBigMix関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a shape belongs to a mix of the shapes (BigMix, not five).
インポート
import { inBigMix } from "@johnmorrisdotca/suido";
定義
function inBigMix(shape: Pick<BigShape, "pipes" | "openings">, mix: BigMix): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
shape | Pick<BigShape, "pipes" | "openings"> | A big-piece shape or its pipe/opening counts. |
mix | BigMix | The supported big-piece family mix. |
戻り値
boolean
Whether a shape belongs to a mix of the shapes (BigMix, not five).
例
import { BIG_SHAPES, inBigMix } from "@johnmorrisdotca/suido";
console.log(inBigMix(BIG_SHAPES[0],"simple"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。