JavaScript Array unshift() in an immutable way
<p>How would you implement something like the Array <code>unshift()</code> method so that it creates a new array? Basically something like the Array <code>concat()</code> method but instead of placing the new item at the end, place it in the beginning.</p>