We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf7379 commit 2056681Copy full SHA for 2056681
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