Closed faizalluthfi closed 3 years ago
This whoud fix const action always refers to first item in actions array because:
const action
actions
id
action
x,action
This whoud fix
const action
always refers to first item inactions
array because:id
property butaction
property, which means theid
property value is undefinedx,action
value is a string and does not haveaction
property too, which means theaction
property value is undefined tooaction
constant will be always the first action inactions
array