UNPKG

420 BJavaScriptView Raw
1import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys";
2export default function _objectWithoutPropertiesLoose(source, excluded) {
3 if (source == null) return {};
4 var target = {};
5 var sourceKeys = _Object$keys(source);
6 var key, i;
7 for (i = 0; i < sourceKeys.length; i++) {
8 key = sourceKeys[i];
9 if (excluded.indexOf(key) >= 0) continue;
10 target[key] = source[key];
11 }
12 return target;
13}
\No newline at end of file