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