mirror of
https://github.com/mue/mue.git
synced 2026-07-17 05:54:14 +02:00
style: codacy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const isValidRGBValue = (value) => {
|
||||
return (typeof (value) === 'number' && Number.isNaN(value) === false && value >= 0 && value <= 255);
|
||||
}
|
||||
};
|
||||
|
||||
export default function setRGBA(red, green, blue, alpha) {
|
||||
if (isValidRGBValue(red) && isValidRGBValue(green) && isValidRGBValue(blue)) {
|
||||
|
||||
Reference in New Issue
Block a user