isSuidoLevelfunction
Whether a number is a level this size has.
Import it
import { isSuidoLevel } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function isSuidoLevel(size: string, level: number): boolean
Parameters
| Name | Type | Description |
|---|---|---|
size | string | The native widthxheight size string, such as 5x5. |
level | number | The one-based level number. |
Returns
boolean
Whether a number is a level this size has.
Examples
import { isSuidoLevel } from "@johnmorrisdotca/suido/levels";
console.log(isSuidoLevel("5x5",1));trueWhat it prints (run when this page was built)