'How to destructure an object to an already defined variable? [duplicate]

The following produces a syntax error:

let source,
    screenings,
    size;

source = {
    screenings: 'a',
    size: 'b'
};

{
    screenings,
    size
} = source;

Expected result:

screenings should be equal to 'a'
size should be equal to 'b'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source