Sha256: dd7c7c74ae550d27e37f4953a426069f85e986ecb7fd010938b1765b7379206b

Contents?: true

Size: 623 Bytes

Versions: 13

Compression:

Stored size: 623 Bytes

Contents

var defineProperty = require("./defineProperty");

function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};
    var ownKeys = Object.keys(source);

    if (typeof Object.getOwnPropertySymbols === 'function') {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
        return Object.getOwnPropertyDescriptor(source, sym).enumerable;
      }));
    }

    ownKeys.forEach(function (key) {
      defineProperty(target, key, source[key]);
    });
  }

  return target;
}

module.exports = _objectSpread;

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/@babel/runtime/helpers/objectSpread.js
disco_app-0.18.2 test/dummy/node_modules/@babel/runtime/helpers/objectSpread.js
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime/helpers/objectSpread.js
jester-data-8.0.0 node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-5.2.1 node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-2.0.1 node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-1.1.0 node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-1.0.0 node_modules/@babel/runtime/helpers/objectSpread.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-0.0.0.1.0 node_modules/@babel/runtime/helpers/objectSpread.js
ezii-os-0.0.0.0.1 node_modules/@babel/runtime/helpers/objectSpread.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/runtime/helpers/objectSpread.js
condenser-0.0.4 lib/condenser/processors/node_modules/@babel/runtime/helpers/builtin/objectSpread.js