text: export const COLORS = [
      'black',
      'brown',
      'red',
      'orange',
      'yellow',
      'green',
      'blue',
      'violet',
      'grey',
      'white',
  ];
  
  export const colorCode = color =>
      COLORS.findIndex(resistorColor => resistorColor === color.toLowerCase());
  