function getCreateValueSignalFunction()

in src/global_map.js [59:69]


function getCreateValueSignalFunction(participantsStartValue) {
  let createValueSignal
  if (typeof participantsStartValue === 'number') {
    createValueSignal = GlobalCounter.createGlobalCounterSignal
  } else if (typeof participantsStartValue === 'string') {
    createValueSignal = GlobalString.createGlobalStringSignal
  } else {
    throw TypeError(UNSUPPORTED_MAP_VALUE_MESSAGE)
  }
  return createValueSignal
}