As mentioned in the introduction of the first article, ES6 is designed to fit JavaScript better for writing larger applications. To do so, the language designers added a number of new features that got inspired from typed substitutes of JavaScript and also from a number of other libraries, including some server-side libraries. Following are the new and updated objects at a glance:
- New data structures that make it easier to store unique values (Sets) or, key-value pairs with unique keys (Maps)
- Existing objects like Math and Number have got new capabilities to perform more operations as well as perform existing operations in a better way
- String got some new functions to make parsing easier
- The type Object got functions to assign an object and compare two objects
- New functions on Array now makes it handy to find an entry, an index and to copy items inside the array
- New Proxy object to extend functionality of an existing object or function.
Your new post is loading...