Function getPlateChar

  • Retrieves the corresponding Persian license plate character for a given key.

    Looks up the character in the plateChars mapping using the provided key.

    Parameters

    • key: string

      The key representing a license plate character code.

    Returns string

    The corresponding Persian character if found, otherwise undefined.

    const result = getPlateChar("12");
    console.log(result); // "الف"
    const result = getPlateChar("99");
    console.log(result); // undefined (if not defined in plateChars)