Function isColoredPiece

  • Whether the given value represents a valid ColoredPiece or not.

    Parameters

    • value: unknown

    Returns value is
        | "br"
        | "bb"
        | "bp"
        | "bq"
        | "bk"
        | "bn"
        | "wr"
        | "wb"
        | "wp"
        | "wq"
        | "wk"
        | "wn"

""