Files
med-notes/.pnpm-store/v10/files/d8/84a4501ccaa4f1e5d4206ab3214bb2038fcf6e59c163e71d7c1fba84c9098ae8f108c9a0e1794ed4e34dd38adaeb49a1318a438b51d415d35a0b3a4b2a441f
2025-06-26 03:35:15 +00:00

18 lines
338 B
Plaintext

'use strict'
// 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