So, I have two classes
Item { name: string; desc: string; meta: string}
ViewItem { name: string; desc: string; hidden: boolean; }
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.
Is there a simple way to achieve this using lambda expressions? (similar to C#) Or is there any other means?