ES2015-compliant shim for Number.isNaN - the global isNaN returns false positives.
npm install is-nan