Understanding ECMAScript 6