encodePortals関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The portals as a layout writes them, after wrap: each pair as its smaller cell and its larger, the pairs in order; nothing where there are none.
インポート
import { encodePortals } from "@johnmorrisdotca/tsunagi";
定義
function encodePortals(pairs: Iterable<readonly [number, number]>): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
pairs | Iterable<readonly [number, number]> | The portal-cell pairs. |
戻り値
string
The portals as a layout writes them, after wrap: each pair as its smaller cell and its larger, the pairs in order; nothing where there are none.
例
import { encodePortals } from "@johnmorrisdotca/tsunagi";
console.log(encodePortals([[3,40]]));portals3-40出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。