In plain untyped Javascript, it\'s not so hard to write a function which can operate on either numbers or bigints, depending on the arguments which are passed in: