MCPcopy
hub / github.com/date-fns/date-fns / isNegativeZero

Function isNegativeZero

pkgs/core/src/differenceInBusinessDays/test.ts:142–144  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

140
141 it("does not return -0 when the given dates are the same", () => {
142 function isNegativeZero(x: number) {
143 return x === 0 && 1 / x < 0;
144 }
145
146 const result = differenceInBusinessDays(
147 new Date(2014, 8 /* Sep */, 5, 0, 0),

Callers 1

test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected