script(obtained from a pinia store):
const moviePosters = store.poster
function removeMovie (value) {
for(var i = 0; i < movieTitles.length; i++) {
movieTitles.splice(i, value);
console.log(movieTitles)
}
html:
<button v-for="options of movieTitles" @click = "removeMovie(options, options)"></button>
This is the array of objects I got back and want to remove a specific one:
Proxy {0: 'Puss in Boots: The Last Wish', 1: 'The Menu'}
[[Handler]]: Object
[[Target]]: Array(2)
0: "Puss in Boots: The Last Wish"
1: "The Menu"
length: 2
[[Prototype]]: Array(0)
[[IsRevoked]]: false