Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-01-29 07:41
Flavor·PCRE (Legacy)

/
function(\s*)\(((\S+,* *)*)\)(\s*){
/
g
Open regex in editor

Description

Converts standard function(a,b) function notation into (a, b) => { shorthand for ES6.

Submitted by Simon Poole