We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf7379 commit 16c6ba9Copy full SHA for 16c6ba9
.changeset/moody-jobs-deliver.md
@@ -0,0 +1,5 @@
1
+---
2
+"@firebase/firestore": patch
3
4
+
5
+Fixes a "Comparison with -0" lint warning for customers that build from source.
packages/firestore/src/util/types.ts
@@ -31,7 +31,7 @@ export function isNullOrUndefined(value: unknown): value is null | undefined {
31
export function isNegativeZero(value: number): boolean {
32
// Detect if the value is -0.0. Based on polyfill from
33
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
34
- return value === -0 && 1 / value === 1 / -0;
+ return value === 0 && 1 / value === 1 / -0;
35
}
36
37
/**
0 commit comments