I was reading through the README and noticed ES5 in the sample code. In fact there was mixed ES5 and ES6 (some arrow function expressions, and some ES5 functions).
This PR unifies the sample code to consistently use ES6, including let, const, and arrow function expressions.
I was reading through the README and noticed ES5 in the sample code. In fact there was mixed ES5 and ES6 (some arrow function expressions, and some ES5 functions).
This PR unifies the sample code to consistently use ES6, including
let
,const
, and arrow function expressions.