Skip to content

Commit 2056681

Browse files
Addess negative zero ESLint validation
1 parent 7bf7379 commit 2056681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/util/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function isNullOrUndefined(value: unknown): value is null | undefined {
3131
export function isNegativeZero(value: number): boolean {
3232
// Detect if the value is -0.0. Based on polyfill from
3333
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
34-
return value === -0 && 1 / value === 1 / -0;
34+
return value === 0 && 1 / value === 1 / -0;
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)