title: Return an array containing hex-codes from a list of colors, based on an indexed type string array
body: <p>I have two types of arrays:</p>
  
  <p><code>colorList</code> Contains a predefined set of colours:</p>
  
  <pre><code>var colorList = [
    '#ff7f50','#87cefa','#da70d6','#32cd32','#6495ed',
    '#ff69b4','#ba55d3','#cd5c5c','#ffa500','#40e0d0'
  ];
  </code></pre>
  
  <p>And <code>dataFromSql</code> contains certain with classes, which corresponds to index of <code>colorList</code> :</p>
  
  <pre><code> var dataFromSql = ['A','A','B','C','C','C','D'];
  </code></pre>
  
  <p><code>finalColor</code> will be a list of array from <code>colorList</code>. Their secquence will be as defined in <code>dataFromSql</code></p>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>var finalColor = ['#ff7f50','#ff7f50','#87cefa','#da70d6','#da70d6','#da70d6','#32cd32'];
  </code></pre>