mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
26 lines
865 B
JavaScript
26 lines
865 B
JavaScript
var _indexOfInstanceProperty = require("../core-js/instance/index-of");
|
|
|
|
var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");
|
|
|
|
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 (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
|
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
target[key] = source[key];
|
|
}
|
|
}
|
|
|
|
return target;
|
|
}
|
|
|
|
module.exports = _objectWithoutProperties; |