UNPKG

445 BJavaScriptView Raw
1var _Object$keys = require("../core-js/object/keys.js");
2
3function _objectWithoutPropertiesLoose(source, excluded) {
4 if (source == null) return {};
5 var target = {};
6
7 var sourceKeys = _Object$keys(source);
8
9 var key, i;
10
11 for (i = 0; i < sourceKeys.length; i++) {
12 key = sourceKeys[i];
13 if (excluded.indexOf(key) >= 0) continue;
14 target[key] = source[key];
15 }
16
17 return target;
18}
19
20module.exports = _objectWithoutPropertiesLoose;
\No newline at end of file