function hasChanged(x, y) { if (x === y) return x === 0 && 1 / x !== 1 / y else return x === x || y === y }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter