function drawES5Chart(options) {
options = options === undefined ? {} : options;
var size: any,
radius: any;
let cords: any;
({size = "big", cords = { x: 0, y: 0 }, radius = 25} = options); // here
console.log(size, cords, radius);
}
As far as I see in spec, that's allowed for object destructuring assignment, in form of:
AssignmentProperty[Yield] :
IdentifierReference[?Yield] Initializer[In,?Yield]opt
As far as I see in spec, that's allowed for object destructuring assignment, in form of: