MCPcopy
hub / github.com/millsp/ts-toolbelt / sign

Function sign

sources/Iteration/_Internal.ts:15–15  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

13const IterationOfGenerator = (min: number, max: number) => {
14 // eslint-disable-next-line no-nested-ternary
15 const sign = (i: number) => `"${i > 0 ? '+' : i < 0 ? '-' : '0'}"`
16 const prev = (i: number) => `"${i === min ? '__' : i - 1}"`
17 const next = (i: number) => `"${i === max ? '__' : i + 1}"`
18 const oppo = (i: number) => `"${i * -1}"`

Callers 1

entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…