You can use now overloading in JS!
No more type checking in function body!