d3.interpolateNumber(0,1)(Infinity)
returns NaN, while I would expect it to return Infinity.
Note that replacing
|
return a * (1 - t) + b * t; |
with
would generate a new NaN issue that is not a problem with the current version:
d3.interpolateNumber(Infinity, Infinity)(0.5)