let a = new Object(); console.log(a.toString()); console.log(Object.is(NaN, NaN)); var objToNumber = value => Number(value.valueOf().toString()); console.log(objToNumber([]) === 0); console.log(Object.is(objToNumber({}), NaN));