[Vuejs]-Vue Removing Item From Array on Click Without Knowing Arrays Name?

0👍

If you’re passing the name of the array, you would use

this[arrayName].splice(index, i)

If you pass the array itself, it would just be

arrayName.splice(index, i)

Leave a comment