title: Conditional Statement in a map function with es6
body: <p>I nee to use the conditional statement in a map function</p>
  
  <p>I am duplicating each single value of a <code>path d</code> in a <code>SVG</code> but i do not want this happening for the objects <code>M</code> and <code>L</code> of the array</p>
  
  <p>Here is an example of the array as string.</p>
  
  <pre><code>M 175 0 L 326.55444566227675 87.50000000000001 L 326.55444566227675 262.5 L 175 350 L 23.445554337723223 262.5 L 23.44555433772325 87.49999999999999 L 175 0
  </code></pre>
  
  <p>This is an example to my case without the conditional statement</p>
  
  <pre><code>let neWd = array.map(x =&gt; { return x * 2; }).reverse().join(' ')
  </code></pre>
  
  <p>how can i write down this in <strong>e6</strong> ? I don not want the multiplication happening for the elements <code>L</code> and <code>M</code> ( something like <code>if x ? 'M' : 'L' return</code> )</p>