Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
function
simpleSign(n) {
23
return
Math.sign(n) || (Object.is(n, -0) ? -1 : 1)
24
}
25
26
function
negateExceptForZero(n) {
27
return
n === 0 ? n : -n
Callers
1
formatTimezoneOffset
Function · 0.85
Calls
1
sign
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…