This PR takes advantage of the changes in #286 to use object deconstruction, optional chaining and optimises some code hot paths with early returns and simplified nesting.
This should be functional equivalent to the current code but produce even smaller code bundles and be ever so slightly faster.
Checklist
[x] only relevant code is changed (make a diff before you submit the PR)
This PR takes advantage of the changes in #286 to use object deconstruction, optional chaining and optimises some code hot paths with early returns and simplified nesting.
This should be functional equivalent to the current code but produce even smaller code bundles and be ever so slightly faster.
Checklist
npm run test
Checklist (for documentation change)