Bug/Feature: Support ES6 constructs
See original GitHub issueSets always evaluate to true
, I suspect the behavior is similarly wrong for ES6 Map, WeakMap, and WeakSet:
isEqual(new Set([3]), new Set([6]))
=> true
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top Results From Across the Web
30. An overview of what's new in ES6 - Exploring JS
Constructs supporting iteration. 30.19. Generators. 30.19.1. What are generators? ... The introduction of the ES6 specification lists all new features:.
Read more >"es6" | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >My Twelve Favorite ES6/ES2015 Features | Capital One Tech
Destructuring Assignment; Enhanced Object Literals; Arrow Functions; Promises; Block-Scoped Constructs: Let and Const; Classes; Modules; For Of ...
Read more >Top 10 ES6 Features Every Busy JavaScript Developer Must ...
Destructuring Assignment in ES6; Enhanced Object Literals in ES6; Arrow Functions in ES6; Promises in ES6; Block-Scoped Constructs Let and Const ...
Read more >lukehoban/es6features: Overview of ECMAScript 6 features
See the ES6 standard for full specification of the ECMAScript 6 language. ... Object literals are extended to support setting the prototype at...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chrisbolin – I’ve got the start of a branch with initial failing regression tests at https://github.com/FormidableLabs/react-fast-compare/compare/feature/es6-datatypes
I’ll be back from parental leave in a week and may be able to div in. I think our work is something like:
Set
supportMap
supportWeakMap
supportWeakSet
supportBut the fact still stands that it would be very hard (or impossible) to implement, based on the very design of the Weak objects:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet