1 | function _objectWithoutPropertiesLoose(source, excluded) {
|
2 | if (source == null) return {};
|
3 | var target = {};
|
4 | var sourceKeys = Object.keys(source);
|
5 | var key, i;
|
6 |
|
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 |
|
13 | return target;
|
14 | }
|
15 |
|
16 | module.exports = _objectWithoutPropertiesLoose; |
\ | No newline at end of file |