How to use the @babel/runtime-corejs2/helpers/defineProperty function in @babel/runtime-corejs2

To help you get started, we’ve selected a few @babel/runtime-corejs2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ashleyw / react-sane-contenteditable / lib / esm / utils.js View on Github external
return reduceTargetKeys(target, function (acc, key) {
    if (keys.some(function (omitKey) {
      return omitKey === key;
    })) {
      return acc;
    } else {
      return _objectSpread({}, acc, _defineProperty({}, key, target[key]));
    }
  });
}