How to get the key from a list obj in html-javascript
I have an array of obj for employees and when the user tries to delete on of them there is a message popping up asking them if they want to continue with the proccess. If they press yes the employee is deleted. The problem is that in the list tag where the key={index} exists i call the function for the pop-up message, and then my other function for the delete proccess doesnt have access in that variable in order to delete the specific employee.