Hi. () => {} is shorthand for:

function() {
 ...
}

It's syntax you will see in ECMAScript 6. You can learn more about the new
syntax at https://babeljs.io/ and start writing the future of JavaScript
today!


On Sat, Jul 2, 2016 at 3:38 AM, Ömer <omeriy...@gmail.com> wrote:

> What is the () => sign ? I see it on examples. Is it used for only
> pseudo-code purposes or is it used in code? What it means? I cannot search
> it on google.
>
> maybeSync(true, () => {
>      foo();     });
> bar();
>
>
> Thanks in advance..
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nodejs@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/cf4a6847-73b3-4ed8-9ff0-b160d574db72%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/cf4a6847-73b3-4ed8-9ff0-b160d574db72%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CALPwyBTt%3DV2-jKOYsnf0%2BjPyaewqYNDX82Nx%2Bohvypfn%2BUupSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to