Skip to main content

ValidationSanitizeColor

Callable

  • ValidationSanitizeColor(item): boolean

  • Sanitize the Color array on the item, converting the old undefined | string | string[] format to string[] if so required


    Parameters

    • item: Item

      The item whose Color should be sanitized

    Returns boolean

    • TRUE if the item's Color was modified as part of the sanitization process (indicating it was not a valid string array), FALSE otherwise