summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
blob: 4b308bde5e9fe94b864e11efa2b138a0be3216f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export default 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;
}