I have this code here in Vue JS that saves an image file to the instance data:
this.post.media = data[0];
It's throwing the ES Lint error prefer-destructuring.
How does a person destructure that? It's confusing me because either way, I will still have this.post.media =. It's one set operation.
Can anyone tell me how to destructure this and why it could be a good idea?