DEV Community

Discussion on: You shouldn't use an index as key of the element

Collapse
 
rajnishkatharotiya profile image
Rajnish Katharotiya

Solution can work, but same it will add dependency. But i think if we have any value unique in our array itself then we should just use it as key.