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

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

Initial commit

  • Property mode set to 100644
File size: 632 bytes
RevLine 
[d24f17c]1import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
2export default function _objectWithoutProperties(source, excluded) {
3 if (source == null) return {};
4 var target = objectWithoutPropertiesLoose(source, excluded);
5 var key, i;
6 if (Object.getOwnPropertySymbols) {
7 var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
8 for (i = 0; i < sourceSymbolKeys.length; i++) {
9 key = sourceSymbolKeys[i];
10 if (excluded.indexOf(key) >= 0) continue;
11 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
12 target[key] = source[key];
13 }
14 }
15 return target;
16}
Note: See TracBrowser for help on using the repository browser.