I would like to know if i can add an element in my array with a specific key with Spread Operator.
let foo = ['a','b','c'];
foo = [...foo,'d'];
In this case foo[3] would be d. But can i add d with a custon key in my foo array and then access with something like: foo['customKey']?