Recently whilst working on my web app Built With Aurelia I encountered a situation where I needed to sort by the highest upvoted items, but …
Javascript
Const or Let: Let’s Talk Javascript
Two of my favourite additions to ECMAScript 2015 were the const and let keywords. Sadly, I see them being misused quite often on many public …
Getting Visual Studio Code To Work With Next Versions of TypeScript
Recently whilst helping out a client with an Aurelia TypeScript project, I encountered a situation where the latest development version of …
Using Async/Await In Aurelia
One of the biggest upcoming additions to Javascript (in my opinion) is support for async/await. If you have worked with a language like C# …
String Enums In TypeScript
Sometimes you want to specify in your application multiple allowed values. For example, you might have a method which allows you to perform …
Removing Items From An Array In Javascript (by index)
It is that time of the week for Obvious Javascript Tip of the week. You probably already know how to delete an item from an array, maybe …
Removing A Character From The Start/End of a String In Javascript
Show of hands if you can off of the top of your head remove/trim a character from the start or end of a string. If your hand remained down, …
Removing Duplicate Objects From An Array By Property Name In Javascript
If you have an array of objects and you want to filter the array to remove duplicate objects but do so based on a provided key/property, …
New Object Methods Land in Chrome
Support for Object.values(), Object.entries() and Object.getOwnPropertyDescriptors() has landed in the Google Chrome dev channel. These …