babel / babel/minify

Save 1 char for arrow functions without arguments

Open
#368 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

**Input**
```
console.log(()=>'foo')
```

**Output**
```
console.log(_=>'foo')
```

This one should be pretty easy to implement, we just need a variable name that is not used in the same context (and of only 1 char)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.