summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
blob: 3c65a9db60e27ab93210f9da97c150ec1e3c69c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }
  return target;
}
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;