Files
med-notes/.pnpm-store/v10/files/73/47ab342470da97b586dec713a56f0961ad8d6dbe87eb524675d48c19cbb6dfaf9635dc7291eacd5c2e3d3a38108736d95905fec0c0e1f7718172978b0a1638
2025-05-09 05:30:08 +02:00

16 lines
324 B
Plaintext

// parse out just the options we care about
const looseOption = Object.freeze({ loose: true })
const emptyOpts = Object.freeze({ })
const parseOptions = options => {
if (!options) {
return emptyOpts
}
if (typeof options !== 'object') {
return looseOption
}
return options
}
module.exports = parseOptions