mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +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);
|
|
}
|