Javascript – How to validate an array of hex colors is correct and discard the wrong ones?
Currently, I only check if it's not null or undefined and I want to make sure that each hex color is correct otherwise discard the wrong hex and move to the next. If the format is completely wrong then just…