A `Number.isNaN` polyfill, based on the ECMAScript 6 specification.