devicescript
devicescript copied to clipboard
implement array/object de-structuring in assignments
Right now, they are only allowed in const/let definitions and function arguments.
let x = 0,
y = 1
;({ x, y } = { x: 17, y: 11 })
;[x, y] = [7, 8]