Skip to content

Commit f3a9710

Browse files
committed
fix: Fixed an issue with MSIE and no support for Number.isNaN
1 parent e1ddfc7 commit f3a9710

9 files changed

+21
-11
lines changed

dist/purify.cjs.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.cjs.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.es.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.es.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ const regExpTest = unapply(RegExp.prototype.test);
5050

5151
const typeErrorCreate = unconstruct(TypeError);
5252

53-
const numberIsNaN = unapply(Number.isNaN);
53+
export function numberIsNaN(x) {
54+
// eslint-disable-next-line no-self-compare
55+
return x !== x;
56+
}
5457

5558
export function unapply(func) {
5659
return (thisArg, ...args) => apply(func, thisArg, args);
@@ -157,8 +160,6 @@ export {
157160
stringToLowerCase,
158161
stringToString,
159162
stringTrim,
160-
// Number
161-
numberIsNaN,
162163
// Errors
163164
typeErrorCreate,
164165
// Other

0 commit comments

Comments
 (0)