mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +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);
|
|
}
|