packages/babel-plugin-minify-mangle-names/src/index.js
function toObject(value) {
  if (!Array.isArray(value)) {
    return value;
  }

  const map = {};
  for (let i = 0; i < value.length; i++) {
    map[value[i]] = true;
  }
  return map;
}
function toObject(value) {
  if (!Array.isArray(value)) {
    return value;
  }

  const map = {};
  for (let i = 0; i < value.length; i++) {
    map[value[i]] = true;
  }
  return map;
}
function toObject ( value ) { if ( ! Array . isArray ( value ) ) { return value ; } const map = { } ; for ( let i = 0 ; i < value . length ; i ++ ) { map [ value [ i ] ] = true ; } return map ; }
convert value to object
convert value to object