joystick
joystick copied to clipboard
Replace internal type checks in @joystick.js/node with Node built in util.types checkers.
Just stumbled across this, had no idea this was a thing: https://nodejs.org/api/util.html#utiltypes.
Rip out our built-in type checks (they work but add unnecessary weight) and swap with this if there are no obvious issues.
There are some things missing in the node types, so this will require a hybrid approach.
Just decided to stick to a simple type-checker function in the app.