source: node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 852 bytes
Line 
1import _Object$getOwnPropertySymbols from "core-js-pure/features/object/get-own-property-symbols.js";
2import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
3import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
4export default function _objectWithoutProperties(source, excluded) {
5 if (source == null) return {};
6 var target = objectWithoutPropertiesLoose(source, excluded);
7 var key, i;
8 if (_Object$getOwnPropertySymbols) {
9 var sourceSymbolKeys = _Object$getOwnPropertySymbols(source);
10 for (i = 0; i < sourceSymbolKeys.length; i++) {
11 key = sourceSymbolKeys[i];
12 if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
13 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
14 target[key] = source[key];
15 }
16 }
17 return target;
18}
Note: See TracBrowser for help on using the repository browser.