All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internal.parse-options.js Maven / Gradle / Ivy

There is a newer version: 7.6.3
Show newest version
// 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy