Comments (4)
@Blesh, thank you so much for your comments on this. As mentioned in the Symbols example in the readme, they are useful for making sure that keys don't collide inside of an object. However, I agree that the example I created doesn't do a good a job of highlighting this.
If you don't mind, would you be willing to submit a PR with the example you've provided here? It highlights the point clearly. As for your second example, that is much appreciated too - I had considered having an example of storing symbols and using them in such a matter, but once again you've done a great job and I'd love to have these examples in the readme.
from es6-cheatsheet.
Sure. I'll try to put something together tomorrow.
from es6-cheatsheet.
Awesome, much appreciated!
from es6-cheatsheet.
Closed by commit d8a45f2.
from es6-cheatsheet.
Related Issues (20)
- Clarify let and const vs var HOT 1
- WeakMap description HOT 2
- Incorrect description of `let`/`const` HOT 1
- Mention fetch in the example about promises? HOT 1
- WeakMaps example - Last line is effectively map.get(null); HOT 2
- Confused about export default HOT 7
- ES6 imports of es6 modules HOT 3
- Best practices are too matter of factly stated HOT 2
- Easy example for ES5 .repeat() HOT 1
- add default values in destructuring HOT 6
- Korean translation HOT 2
- Does Symbol.iterable method exist? HOT 2
- weakmap example seems wrong HOT 1
- Blocks description is misleading HOT 2
- I think let and const will actually be hoisted in their scope HOT 1
- Getters and setters are not part of ES6 HOT 1
- [section] async-await explanation HOT 3
- Specify the license HOT 1
- Extra space in English cheatsheet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es6-cheatsheet.