TypeScript transpiles certain code into this:
Animal.prototype.move = function (distanceInMeters) {
if (distanceInMeters === void 0) { distanceInMeters = 0; }
...
What's void 0
? Is that the same trick as used for links void(0)
? Why is not undefined
used instead?