title: Mapping and Replacing an Element of an Array
body: <p>In my code, I have an array of elements. One of those elements is not a string (<code>&lt;a/&gt;</code> element). I want to map through that array and find the element and, replace that element with the string 'error'. Here is the array.  How can I achieve what I want?</p>
  <pre><code>const arr = ['my', 'array', '&lt;a/&gt;', 'is'];
  </code></pre>