javascript.functions.arrow_functions

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Bun version 1.0.0 on 2023-09-08

In Chrome version 45 on 2015-09-01

In Chrome Android version 45 on 2015-09-01

In Deno version 1.0 on 2020-05-13

In Edge version 12 on 2015-07-29

In Firefox version 22 on 2013-06-25 Note: The initial implementation of arrow functions in Firefox made them automatically strict. This has been changed as of Firefox 24. The use of 'use strict'; is now required. Before Firefox 39, a line terminator (\n) was incorrectly allowed after arrow function arguments. This has been fixed to conform to the ES2015 specification and code like () \n => {} will now throw a SyntaxError in this and later versions.

In Firefox for Android version 22 on 2013-06-25 Note: The initial implementation of arrow functions in Firefox for Android made them automatically strict. This has been changed as of Firefox for Android 24. The use of 'use strict'; is now required. Before Firefox for Android 39, a line terminator (\n) was incorrectly allowed after arrow function arguments. This has been fixed to conform to the ES2015 specification and code like () \n => {} will now throw a SyntaxError in this and later versions.

Not in Internet Explorer

In Node.js version 4.0.0 on 2015-09-08

In Quest Browser version 5.0 on undefined

In Opera version 32 on 2015-09-15

In Opera Android version 32 on 2015-09-23

In Safari version 10 on 2016-09-20

In Safari on iOS version 10 on 2016-09-13

In Samsung Internet version 5.0 on 2016-12-15

In WebView Android version 45 on 2015-09-01

In WebView on iOS version 10 on 2016-09-13