Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cursorless-dev/cursorless
/ abs
Function
abs
src/util/bigint.ts:2–4 ·
view source on GitHub ↗
(x: bigint)
Source
from the content-addressed store, hash-verified
1
// From https://stackoverflow.com/a/64953280
2
export
function
abs(x: bigint) {
3
return
x < BigInt(0) ? -x : x;
4
}
Callers
1
getReadableMap
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected