<div id="app">
<p>{{ helloText }}</p>
</div>
const mylib = {
hello : (text1, text2) => {
return `Hello! ${text1} ${text2}`
},
install: function(Vue){
Object.defineProperty(Vue.prototype, 'mylib', {
get () { return mylib }
})
}
};
Vue.use(mylib);
new Vue({
el: '#app',
data: {
helloText: mylib.hello('one', 'two')
}
});
var i = array1.filter(al => {return !array2.map(bl => bl.id).includes(al.id)});
array1.filter(al => {return !array2.map(bl => bl.id).includes(al.id)}).map(l => l.id)