Tag: arrow-functions

javascript – Are ‘Arrow Functions’ and ‘Functions’ equivalent / interchangeable?

The Question : 584 people think this question is useful Arrow functions in ES2015 provide a more concise syntax. Can I replace all my function declarations / expressions with arrow functions now? What do I have to look out for? Examples: Constructor function Prototype methods Object (literal) methods Callbacks Variadic functions The Question Comments :