DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
913 stars 41 forks source link

Desctructing object error #77

Open VCortes opened 1 year ago

VCortes commented 1 year ago

The following code results in a error (Typescript or Javascript):

const product = {
    name: 'iPhone',
    price: 699,
};
const { name, ...newProduct} = product ;