CoolFace
Apppublic

strong-tie/inbound-calls

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
parse-options.js16 linesDownload Raw Back to internal
1// parse out just the options we care about2const looseOption = Object.freeze({ loose: true })3const emptyOpts = Object.freeze({ })4const parseOptions = options => {5  if (!options) {6    return emptyOpts7  }8 9  if (typeof options !== 'object') {10    return looseOption11  }12 13  return options14}15module.exports = parseOptions16