mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
3d33c34010
* chore: use includes instead indexOf * fix: fix
7 lines
223 B
TypeScript
7 lines
223 B
TypeScript
import { PresetColorTypes } from '../_util/colors';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export function isPresetColor(color?: string): boolean {
|
|
return (PresetColorTypes as any[]).includes(color);
|
|
}
|