aswi2020vldc-gitlab/templetes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js @ 3a515b92
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; |