X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/58d78d7c0602b17a9599e28232cc8a2ff1d8fc65..8ae1056e7a8e0d348781ed6b5e8c3210eebea9df:/value.js diff --git a/value.js b/value.js index 3f0c6fa..bda9180 100644 --- a/value.js +++ b/value.js @@ -141,14 +141,14 @@ export const { }; })(); -/** - * Returns whether the provided values are the same value. - * - * ※ This differs from `===` in the cases of nan and zero. - */ -export const sameValue = Object.is; - export const { + /** + * Returns whether the provided values are the same value. + * + * ※ This differs from `===` in the cases of nan and zero. + */ + sameValue, + /** * Returns whether the provided values are either the same value or * both zero (either positive or negative). @@ -158,7 +158,9 @@ export const { sameValueZero, } = (() => { const { isNaN: isNan } = Number; + const { is } = Object; return { + sameValue: (a, b) => is(a, b), sameValueZero: ($1, $2) => { const type1 = type($1); const type2 = type($2);