Tag Archives: javascript

Stripe.com Alike Morphing Navigation Dropdown

Analysis and reproduction – using jQuery – of the morphing navigation dropdown as seen on stripe.com: Instead of hiding and showing a new dropdown “container” when the user switches from one navigation item to the other, they animate the dropdown … Continue reading

Elsewhere , , Leave a comment

Glossary of Modern JavaScript Concepts

Modern JavaScript has experienced massive proliferation over recent years and shows no signs of slowing. Numerous concepts appearing in JS blogs and documentation are still unfamiliar to many front-end developers. In this post series, we’ll learn intermediate and advanced concepts … Continue reading

Elsewhere , Leave a comment

JavaScript immutability-helper – Mutate a copy of data without changing the original source

Dealing with immutable data in JavaScript is more difficult than in languages designed for it, like Clojure. However, we’ve provided a simple immutability helper, update(), that makes dealing with this type of data much easier, without fundamentally changing how your … Continue reading

Elsewhere , Leave a comment

JavaScript Start-up Performance

As web developers, we know how easy it is to end up with web page bloat. But loading a webpage is much more than shipping bytes down the wire. Once the browser has downloaded our page’s scripts it then has … Continue reading

Elsewhere , , Leave a comment

ES2015 (ES6): Easily remove duplicates from an Array

Say you have a JavaScript Array containing duplicate values. By creating a Set – which only stores unique values (primitive values or object references) – and then spreading that Set into a new Array you can easily dedupe the given … Continue reading

Elsewhere , , Leave a comment

JavaScript “Null Propagation Operator“

Earlier today I was delighted to see that the “Null Propagation Operator” in JavaScript has entered stage-1. This little gem – which I know from Coffeescript – is a real timesaver, and is something I’ve been looking forward to. Stage-1? … Continue reading

Elsewhere , Leave a comment

Free Book: Exploring ES2016 and ES2017

From the same author as Exploring ES6. Again available for free online, or available for purchase as an ebook. Exploring ES2016 and ES2017 →

Elsewhere , , Leave a comment

Free Book: Exploring ES6

An in-depth book on ECMAScript 6, for JavaScript programmers. Extensive book written by Axel Rauschmayer (whom you might know from 2ality.com), available for free online. It’s also possible to purchase as an ebook-version (.epub et al) of the book. Exploring … Continue reading

Elsewhere , , , 1 Comment

Using Object.assign() to quickly set multiple inline styles

Since an HTMLElement its CSSStyleDeclaration (viz. its style property) essentially is an Object, it’s perfectly possible to pass it as the target object into Object.assign() along with a few other objects. The result is that all keys from those extra … Continue reading

Elsewhere , , Leave a comment

react-day-picker

react-day-picker is a flexible date picker component for React. no external dependencies select days, ranges, whatever using CSS modifiers ready for localization, even with moment.js customizable style navigable via keyboard, ARIA support As with every other well-written React component you … Continue reading

Elsewhere , , , 1 Comment