MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / simpleSign

Function simpleSign

src/utils/formatAuthor.js:22–24  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

20}
21
22function simpleSign(n) {
23 return Math.sign(n) || (Object.is(n, -0) ? -1 : 1)
24}
25
26function negateExceptForZero(n) {
27 return n === 0 ? n : -n

Callers 1

formatTimezoneOffsetFunction · 0.85

Calls 1

signMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…