/* IMPORT */ | |
import isLight from '~/methods/is_light'; | |
import type {Channels} from '~/types'; | |
/* MAIN */ | |
const isDark = ( color: string | Channels ): boolean => { | |
return !isLight ( color ); | |
}; | |
/* EXPORT */ | |
export default isDark; | |
/* IMPORT */ | |
import isLight from '~/methods/is_light'; | |
import type {Channels} from '~/types'; | |
/* MAIN */ | |
const isDark = ( color: string | Channels ): boolean => { | |
return !isLight ( color ); | |
}; | |
/* EXPORT */ | |
export default isDark; | |