Sha256: 64d228c651f45abe04b92213bc65530a926a5c3990f8acc2c0d82466ec67ffd5

Contents?: true

Size: 865 Bytes

Versions: 9

Compression:

Stored size: 865 Bytes

Contents

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;

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js