investigate small code smells and duplicate codes. ### references * <https://codeclimate.com/github/RodrigoDornelles/npm-gamepadzilla> ### tasks - [ ] create function `center2d` in `src/util.ts` - [ ] refactor the function `construct()`
investigate small code smells and duplicate codes.
references
tasks
center2dinsrc/util.tsconstruct()