It’s called Destructuring assignment. It is similar to writing
const chartWidth = this.chartWidth;
const width = lastTick.label.getBBox().width;
More Related Contents:
- what happens when an item is deleted from a javascript array [duplicate]
- All falsey values in JavaScript
- Events triggered by dynamically generated element are not captured by event handler
- if-else statement inside jsx: ReactJS
- Why does the month argument range from 0 to 11 in JavaScript’s Date constructor?
- React Native – Image Require Module using Dynamic Names
- How to reload page every 5 seconds?
- How do I set multipart in axios with react?
- Splitting a JS array into N arrays
- How to solve ‘Redirect has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header’?
- Properties of Javascript function objects
- How to populate the options of a select element in javascript
- react native use variable for image file
- Huge number of files generated for every Angular project
- How to use javascript conditionally like CSS3 media queries, orientation?
- When using setInterval, if I switch tabs in Chrome and go back, the slider goes crazy catching up
- How to save a png from javascript variable
- javascript sort of HTML elements
- Why will jQuery not load in Facebook?
- Is there an event for when a Chrome Extension popup is closed?
- Resetting form after submit in Angularjs
- jQuery attribute selector variable
- Get the description of a ES6 Symbol
- How to get errors stack trace in Chrome extension content script?
- JavaScript local and global variable confusion [duplicate]
- JavaScript dot notation [duplicate]
- behavior of javascript getElementById() when there are elements with duplicate IDs in HTML DOM?
- Websocket API to replace REST API? [closed]
- Handling common JavaScript files in Visual Studio 2010
- Differentiating Between an AJAX Call / Browser Request