summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
blob: 658b254a49aee2b83f1d6bc05cf407ec73aad7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  for (var key in source) {
    if (Object.prototype.hasOwnProperty.call(source, key)) {
      if (excluded.indexOf(key) >= 0) continue;
      target[key] = source[key];
    }
  }
  return target;
}
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;