ECMAScript 6

Adding Support for ES2015 Number Methods to iOS 8

At Build.com, I’m working on an e-commerce app using React Native. React Native allows us to write apps in JavaScript that can run on iOS and Android phones with near native performance. The other day, we received several crash reports from users running iOS 8. All of the reports involved method calls on JavaScript’s global…

Read More

Handling a Null Response from an API

I’ve been working with React Native lately, which uses the Fetch API for asynchronously fetching data from web services. Recently, I came across a really strange error. Certain calls (in particular, calls to fetch data for new users) would cause an error, “Unexpected end of JSON”.

Read More

Sorting Arrays with JavaScript iterators

A lot of front-end web development involves displaying sorted lists on a page and maintaining the state and logic of the list. These sorted lists may be things like a list of products or an employee directory. Often, we will give the user the ability to re-sort the list or sort by a different key.…

Read More

How To Set Up the Babel 6 Plugin in WebStorm

The latest version of Babel, the ES2015 transpiler, is out and there have been enough changes that I’ve decided to revise my original blog post, “How To Set Up the Babel Plugin in WebStorm”. At the time of writing, Babel is on version 6; my original post was written for Babel 5.

Read More

Angular U: Classes, Prototypes and OLOO

I just returned from the Angular U 2015 conference.  It was a great experience and I learned a lot.  I was even lucky enough to meet a number of the big names in Angular, people that I’d read about or heard on podcasts, including Brad Green, Dan Wahlin, Joe Eames, Ward Bell, Scott Moss, David…

Read More

How To Set Up the Babel Plugin in WebStorm

Note, this post was written for Babel 5. It has been re-written for Babel 6, “How To Set Up the Babel 6 Plugin in WebStorm”. I’ve been enjoying programming in ECMAScript 6 recently. I use the Babel plugin for WebStorm to compile ES6 code down to ES5 code that can be run in the browser.…

Read More