That's an arrow function. You can read about it on MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

On Saturday, July 2, 2016, Ömer <[email protected]> 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 [email protected]
> <javascript:_e(%7B%7D,'cvml','nodejs%[email protected]');>.
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> 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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAO8i3icb09%2B-hsjrauOS_d73dQXMOWFsDaVcYqKO%2BDnpr2MKRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to