kodadot / loligo

Common good repository for Squid indexers in KodaDot
2 stars 1 forks source link

Increase / decrease function #38

Open vikiival opened 1 year ago

vikiival commented 1 year ago
function inc(value: number | undefined) {
  return (value || 0) + ONE
}

function dec(value: number) {
  return value - ONE
}