Closed asukaminato0721 closed 5 months ago
@limzykenneth consistency with no space function()
seems like the way to go for now. I'd generally recommend against anonymous functions for documentation, but they're fine in source code.
Longer term, both Airbnb and StandardJS suggest space before parentheses for anonymous functions. Maybe we can revisit style guides on the road to 2.0.
I'll do a final review later today to see if private methods will work or not. After that I will merge this.
The new syntax doesn't seem to work with browserify, we'll re-explore this as part of 2.0. I'll merge this for now. Thanks @asukaminato0721
Resolves #6721
Changes:
use default values of arguments, fix some missing
...args
, use some native apis.Screenshots of the change:
PR Checklist
- [x]
npm run lint
passes- [x] Inline documentation is included / updated
- [x] Unit tests are included / updated
Resolves #6721
Changes:
use default values of arguments, fix some missing
...args
, use some native apis.Screenshots of the change:
PR Checklist
npm run lint
passes