Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object spread operator is not working #160

Open
chaitanya71998 opened this issue Feb 1, 2021 · 1 comment
Open

object spread operator is not working #160

chaitanya71998 opened this issue Feb 1, 2021 · 1 comment

Comments

@chaitanya71998
Copy link

chaitanya71998 commented Feb 1, 2021

hey i tried this code using of spread operator but getting error

let person = { name: "Rahul", age: 27 };
let address = { city: "Hyderabad", pincode: 500001 };
let personDetails = { ...person, ...address };
console.log(personDetails);

found parse is throwing error, but couldn't solve it
is there any fix to this issue

@chaitanya71998
Copy link
Author

i got result after changing babylon with @babel/parser,
is it a good to solve above issue,
but its file size is too large to use,
any alternate solution you have, could be very much helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant