Tag: JavaScript
All the articles with the tag "JavaScript".
-
Removing duplicates from an array in ES6 Javascript
ES6 introduces a new type of Set object that stores unique values. This is very useful if you want to get only unique values from an array, similar to Ruby's uniq method.
-
Passing functions as props an anti-pattern in Vue.js
Passing functions down as props is mostly considered an anti-pattern in Vue.js. It links both parent child components together with two-way data binding. Vue.js has a better native way of handling this.
-
Vue Renderless Component Fun: Google Analytics Event Tracker
Let's say you needed to track how many times a specific button in your Vue app is clicked on using Google Analytics, how would you do it? The first thing that comes to mind might be with a click handler.