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

Arrow function doesn't correct. #1795

Closed
xgrommx opened this issue Jun 20, 2015 · 1 comment
Closed

Arrow function doesn't correct. #1795

xgrommx opened this issue Jun 20, 2015 · 1 comment
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@xgrommx
Copy link

xgrommx commented Jun 20, 2015

Hello @sebmck I use babel and arrow function like this:

let x = () => {
  console.log(this);
};

x();

But in console.log output undefined. This is very important problem in my project.

@sebmck
Copy link
Contributor

sebmck commented Jun 20, 2015

See the FAQ, also a duplicate of #1700, #1667, #1573, #562, #814, #730 and #733.

@sebmck sebmck closed this as completed Jun 20, 2015
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 15, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

2 participants