mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-24 01:51:52 +02:00
14 lines
237 B
JavaScript
14 lines
237 B
JavaScript
/* IMPORT */
|
|
import Color from '../color/index.js';
|
|
/* MAIN */
|
|
const isValid = (color) => {
|
|
try {
|
|
Color.parse(color);
|
|
return true;
|
|
}
|
|
catch {
|
|
return false;
|
|
}
|
|
};
|
|
/* EXPORT */
|
|
export default isValid;
|