Destructuring assignment for dict with default values in JavaScript
I saw a JS syntax as following: export const ChartComponent = props => { const { data, colors: { backgroundColor = 'white', lineColor = '#2962FF', textColor = 'black', areaTopColor = '#2962FF', areaBottomColor = 'rgba(41, 98, 255, 0.28)', } = {},…