I\'m using Vue.js and I am wondering how I can call a javascript property in a dynamic way. Let\'s say I pass an argument to a function like this:
filter: functi
Maybe this way?
filter: function(items) { var whatToFilter = items + 'ToFilter'; this[whatToFilter].splice(index, 1); },