github-pages-deploy-action/node_modules/@babel/runtime/helpers/objectWithoutProperties.js

22 lines
665 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose");
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
module.exports = _objectWithoutProperties;