-
JS Tip: Simple Array Of Unique Items
development, javascript, ecmascript ·A co-worker showed me a simple trick for getting an array of unique, simple values. Let’s say we were combining two arrays of message id’s:
-
Fun With Destructuring
development, javascript, ecmascript, angularjs, es2015, react, nodejs ·If you aren’t compiling your JavaScript (well, ECMAScript…) code with Babel, you’re probably missing out on some of the best features of the evolving language. On the other hand, if you’re working in React or Angular every day, you’ve probably come across some of the most dynamic features. Destructuring is a prime example, but it’s also important to understand the...
-
ES2015 and Fun With Parameters
development, javascript, ecmascript, es2015, angularjs ·If you’ve come to JavaScript after learning to program in other languages, one thing that’s probably stuck in your craw over the years has been the lack of any way to define default parameters in functions. You’ve probably written something like this in the past:
-
ES2015, Promises, and Fun With Scope
development, javascript, ecmascript, es2015, angularjs ·I’ve been using Promises for some time now. JQuery has acted as a shim for some time, and several other libraries have been around as well. ES2015 includes Promises natively. If you’re unfamiliar with Promises, I strongly suggest you read this great post by Dave Atchley.