title: Remove words from array of string
body: <p>I have an array of strings:</p>
  <pre><code>[
    'Alica Brereton,Marijuana,9.18,50',
    'David Ernest,Methamphetamine,108.78,5',
    'David Ernest,cocaine,80,2',
    'Gabriella Hyde,Marijuana,9.18,10',
    'Gabriella Hyde,Methamphetamine,108.78,8',
    'Joel Forro,ecstasy,19.12,10',
    'Joel Forro,heroin,91.16,5',
    'William Kotai,ecstasy,19.12,20'
  ]
  </code></pre>
  <p>and i would like to remove the names from the start of each string so the end result would be:</p>
  <p>[
  'Marijuana,9.18,50',
  'Methamphetamine,108.78,5',
  'cocaine,80,2',
  'Marijuana,9.18,10',
  'Methamphetamine,108.78,8',
  '19.12,10',
  'heroin,91.16,5',
  'ecstasy,19.12,20'
  ]</p>
  <p>this is my existing code:</p>
  <pre><code>const fs = require(&quot;fs&quot;);
  const data = fs.readFileSync(&quot;data.txt&quot;).toString();
  const lines = data.split(&quot;\n&quot;);
  
  let customerKeys = lines[0].replace(&quot;customer&quot;, &quot;Total Price&quot;);
  lines.shift();
  console.log(customerKeys);
  console.log(lines);
  
  let array = lines.filter((str) =&gt; {
    return str !== &quot;&quot;;
  });
  let arrNoSpaces = array;
  
  arrNoSpaces.sort();
  console.log(arrNoSpaces);
  
  let keyValues = (customerKeys[0] += arrNoSpaces[1]);
  keyValues += {};
  console.log(keyValues);
  
  customerKeys = customerKeys.split(&quot;,&quot;);
  var TotalPrice = customerKeys.shift();
  customerKeys.push(TotalPrice);
  
  
  const customerNames = arrNoSpaces.map((line) =&gt; line.match(/\w+ \w+/)?.[0]);
  </code></pre>