Adam K Dean

Posts tagged with javascript

Encapsulating console.log with spread operator

Published 4 November 2015 in archive with tags javascript , es2015 , es6 ES6 or ES2015 contains lots of goodies. One of them, my favourite, is the spread operator. It "allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected." Continue reading …

ES6 compatible sleep function

Published 24 March 2015 in archive with tags javascript , es6 While debugging locally, it can be hard to see how an application runs in the wild as the network has no delay. Quite often, you get around this using a sleep function. Continue reading …

Intercepting XMLHttpRequest requests

Published 11 March 2015 in archive with tags javascript Let's kick off the continuation of my code blogging with a very helpful little snippet. I'm just removing this from a codebase so it can sit here for eternity instead. Continue reading …

RegEx match all words with a prefix

Published 17 July 2014 in archive with tags javascript , regex Here is a snippet to match all words that begin with a specified prefix. Continue reading …

Reverse the polarity of AngularJS filters

Published 11 March 2014 in archive with tags javascript , angular AngularJS allows you to use strings, objects, and functions as filter objects. You can use them to filter certain text, such as a name in a list of names, or a number in a list of phone numbers. But what happens when you want to filter out those results? Continue reading …



Newer Page 2 of 4 Older