Detecting media query support in CSS and JavaScript

Recently I needed a way to detect support for a media query in CSS and Javascript. To detect if a browser supports a certain CSS feature, you can use @supports () { … }, but that doesn’t work for media queries. In this article I’ll show you how you can … Read more


Array.prototype.reduce() in JavaScript

This is episode three of the JavaScript Snippet Series. In Episode one, we discussed three methods of getting unique values from JavaScript. In Episode two we discussed some ways to sort arrays in JavaScript. In this article, we will be looking at... (more…)

Read more »