Open othree opened 6 years ago
arrow function
[async] [params] => body
=> :: token before body
params ::
if params.length
if wrap by paren
token before params[0]
else
params[0]
else
token before `)` before `(` body
async :: token before params
test before params [async] [params]
test before body [params] => body
function
[async] function [*] [id] [params] body
const a = () => {};
const b = arg => {};
const c = async (a, b) => {};
const d = async arg => {};
function
}
,]
,)