How to delete and object from an array through a JavaScript table : How can I delete an object from an array though a js table, I have created a table with each row being one object. How can I create a function where I can have an onlclick function where if I click a delete button on one row it will delete that specific row but also delete that specific object in the array. 