title: Typescript: How can I simply convert arrays of arrays to objects of type <my model>
body: <p>I'm developing in Angular 6. I want to know if there is a simple way to deal with a bunch of models describing the format of the structured sets of values in a bunch corresponding arrays. I am looking for a simple cookie-cutter approach, not custom creating code to bring in each individual element of each array into a model instance using For-loops. Some of the models are more complex, and would have several levels of nesting.</p>
  
  <p>A simple case:</p>
  
  <p>Model:</p>
  
  <pre><code>export class User {
      firstName = '';
      lastName = '';
      userName = '';
      email = '';
  }
  </code></pre>
  
  <p>Array:</p>
  
  <pre><code>[
  ["Adam","Richardson","AdMan","Adam@example.com"],
  ["Ahmad","Ali","MarketMan","Ahmad@example.com"],
  ["Feng","Trunk","SuperMan","Feng@example.com"],
  ["Chris","Garcia","SmartMan","Donald@example.com"] 
  ]
  </code></pre>
  
  <p>Is there some way to magically overlay a model onto a values only array?</p>