About 155,000 results
Open links in new tab
  1. syntax - What's the meaning of "=>" (a fat arrow formed from equal …

    Jun 20, 2017 · An arrow function expression (also known as fat arrow function) has a shorter syntax compared to function expressions and lexically binds the this value (does not bind its own this, …

  2. When should I use arrow functions in ECMAScript 6?

    Apr 8, 2014 · Arrow function syntax is delicate and ambiguous Therefore, arrow functions create opportunities for confusion and errors, and should be excluded from a JavaScript programmer's …

  3. What is the syntax for Typescript arrow functions with generics?

    Aug 31, 2015 · The typescript handbook currently has nothing on arrow functions. Normal functions can be generically typed with this syntax: example: function identity<T> (arg: T): T { return arg; } Wha...

  4. How to use if-else condition in arrow function in JavaScript?

    Jun 4, 2016 · Is it possible to use an if else condition in JavaScript using an arrow function?

  5. Syntax for an async arrow function - Stack Overflow

    The OP appears to be looking for a named, async, arrow function which is the one syntax you do not show.

  6. javascript - Can I use ES6's arrow function syntax with generators ...

    An arrow function expression (also known as arrow function) has a shorter syntax compared to function expressions and does not bind its own this, arguments, super, or new.target).

  7. javascript - Are 'Arrow Functions' and 'Functions' equivalent ...

    Arrow functions don't have their own this or arguments binding. Instead, those identifiers are resolved in the lexical scope like any other variable. That means that inside an arrow function, this and …

  8. mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · def f(x) -> 123: return x I thought that this might be some kind of a precondition syntax, but: I cannot test x here, as it is still undefined, No matter what I put after the arrow (e.g. 2 < 1), it …

  9. javascript - Why is arrow syntax preferred over function declaration ...

    Function declaration and arrow functions are different in their essence, but in the scope of your question, it's basically a code style preference. I personally prefer Function declaration as I find it easier to spot …

  10. c++ - Arrow operator (->) in function heading - Stack Overflow

    Where could I find out what the arrow operator (->) means in the function heading? I guess purely logically, that the -> operator determines a type, that auto will be deduced to, but I want to get this …