Typescript: Is there a simple way to convert an array of objects of one type to another
<p>So, I have two classes</p>

<pre><code>Item { name: string; desc: string; meta: string}

ViewItem { name: string; desc: string; hidden: boolean; }
</code></pre>

<p>I have an array of Item that needs to be converted into an array of ViewItem.
Currently, I am looping through the array using for, instantiating ViewItem, assigning values to attributes and pushing it to the second array.</p>

<p>Is there a simple way to achieve this using lambda expressions? (similar to C#)
Or is there any other means?</p>