I have an array of css hex colors called backgroundColors. renderButtons functions (can take buttons: TargetType[] | CustomizationOption[]) I would like to have something like
js const isBackground = (value: unknown | BackgroundColorCSSValue): value is BackgroundColorCSSValue => backgroundColors.includes(value) to check if the received parameter is a background color or other thing, but I'm having this error (see attached image). What can I do to avoid the error on backgroundColors.includes(value)
Thanks in advance!