How to search and replace value in array of object literals
<p>I have been trying to figure out how to simply search and replace a value (in this case replacing any value equal to null with undefined) in an array of objects like this - the array keys could vary:</p>

<pre><code>var array = [{ 
  "name": "mike",
  "age": null
},
{ "name": "jim",
  "age": 99
}];
</code></pre>

<p>Expected result:</p>

<pre><code>var array = [{ 
    "name": mike,
    "age": undefined
  },
  { "name": jim,
    "age": 99
  }];
</code></pre>

<p>My impression is that I should be able to do this using the map() function but none of the documentation examples are quite making sense to me for this. I have been trying to apply the solution from this question: <a href="https://stackoverflow.com/a/5915891/2930969">https://stackoverflow.com/a/5915891/2930969</a> but without any success.</p>

<p>Anyways, if anyone cares to help point me in the right direction here is a framed out codepen you can tinker with: <a href="http://codepen.io/anon/pen/zBxwdj?editors=0012" rel="nofollow noreferrer">http://codepen.io/anon/pen/zBxwdj?editors=0012</a></p>