@x-oasis/is 0.1.35 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @x-oasis/is
2
+
3
+ ## 0.1.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 63417ab: update is to test deps update
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-oasis/is",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "is function",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -8,7 +8,7 @@ export default (x: any, y: any) => {
8
8
  // Steps 1-5, 7-10
9
9
  // Steps 6.b-6.e: +0 != -0
10
10
  // Added the nonzero y check to make Flow happy, but it is redundant
11
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
11
+ return y !== 0 || x !== 0 || 1 / x === 1 / y;
12
12
  }
13
13
  // Step 6.a: NaN == NaN
14
14
  return x !== x && y !== y;