source: trip-planner-front/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 462 bytes
Line 
1function _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
16module.exports = _objectWithoutPropertiesLoose;
17module.exports["default"] = module.exports, module.exports.__esModule = true;
Note: See TracBrowser for help on using the repository browser.