UNPKG

khroma

Version:

A collection of functions for manipulating CSS colors, inspired by SASS.

18 lines (9 loc) 246 B
/* 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;