es6-features
es6-features copied to clipboard
ECMAScript 6: Feature Overview & Comparison
The result from ES6 Array Matching is not what it is expected to be with syntactic sugar which is the default. ``` var list = [ 1, 2, 3 ]...
The large red Xs in the top-right corners of the ES5 code snippets somewhat imply that they contain errors. Should they be taken away or changed to something else to...
Output of equivalent implementation in ES5 is different than ES6
There is a problem in the following example: https://github.com/rse/es6-features/blob/75bf0b4ea1b1922f80d759977c138f14ecf24d91/features.txt#L1340-L1362 Manipulating `username` on line 1361/1353 cannot work. The username is UI8 array and the setter just manipulates the first byte only.
After this assignment: https://github.com/rse/es6-features/blob/75bf0b4ea1b1922f80d759977c138f14ecf24d91/features.txt#L1322 See the following lines: https://github.com/rse/es6-features/blob/75bf0b4ea1b1922f80d759977c138f14ecf24d91/features.txt#L1323-L1324 Those basically test if value `null` is in the map/set, not if `foo` is still in the map/set. There exists no...
To improve user's experience and site's visual appeal I've modified overflow behavior (on content and sidebar) so that it's visible or hidden as per requirement. Also, I've improved spacing around...
I have a code that i was expecting will return 'undefined' or any error but it gives output as mentioned. let i = (x, c) => { c(x); }; i(20,...
To inherit static method of the parent class, in es5, the child function's prototype link called `__proto__` should be assigned as parent function itself. For example, ```js function Parent(){} function...