title: JavaScript Split Array on Dot
body: <p>I have a Javascript Array that contains the file name and its extension such as this:</p>
  <pre><code>let files = [&quot;Apple.docx&quot;, &quot;Cat.jpeg&quot;, &quot;Moon.gif&quot;];
  </code></pre>
  <p>I want to make it so the extensions like (.docx, .jpeg and .gif) are stored in another array and also uppercase as this while the original array just becomes:</p>
  <pre><code>let files = [&quot;Apple&quot;, &quot;Cat&quot;, &quot;Moon&quot;];
  let extensions = ['DOCX', 'JPEG', 'GIF'];
  </code></pre>