ES6-compliant shim for Object.is - differentiates between -0 and +0, and can compare to NaN.