I'm setting max
to Infinity
on this object:
let RANGE_DEFAULT_OPTIONS: any = { min: 0, max: Infinity };
console.log(RANGE_DEFAULT_OPTIONS); // {min: 0, max: null}
When the RANGE_DEFAULT_OPTIONS
object is logged, it logs null
for the max
property.
Also this will log true
:
console.log(RANGE_DEFAULT_OPTIONS.max === Infinity);
So are Infinity
and null
interchangeable?