title: TypeError: Cannot read property 'splice' of undefined- Angular 5
body: <p>I am trying to <code>splice</code> object from an array of list of object, passing an object index as the first argument <code>splice(index, 1)</code>, but it results in the following error:</p>
  
  <blockquote>
    <p>Cannot read property 'splice' of undefined. </p>
  </blockquote>