MCPcopy Create free account
hub / github.com/Effect-TS/effect / formatSigned

Function formatSigned

packages/effect/typeperf/compare.mjs:208–208  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

206
207const formatNumber = (value) => value.toLocaleString("en-US")
208const formatSigned = (value) => value === 0 ? "0" : `${value > 0 ? "+" : ""}${formatNumber(value)}`
209
210const printTable = (rows) => {
211 const table = [

Callers 1

printTableFunction · 0.85

Calls 1

formatNumberFunction · 0.70

Tested by

no test coverage detected