Sha256: 6e59f7af169ad0b57b9481d36074cf125c94db0d610d62a8d606aba9bc71ed7f

Contents?: true

Size: 370 Bytes

Versions: 83

Compression:

Stored size: 370 Bytes

Contents

export default function _defaults(obj, defaults) {
  var keys = Object.getOwnPropertyNames(defaults);

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    var value = Object.getOwnPropertyDescriptor(defaults, key);

    if (value && value.configurable && obj[key] === undefined) {
      Object.defineProperty(obj, key, value);
    }
  }

  return obj;
}

Version data entries

83 entries across 82 versions & 12 rubygems

Version Path
isomorfeus-redux-4.1.4 node_modules/@babel/runtime/helpers/esm/defaults.js
isomorfeus-redux-4.1.3 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/esm/defaults.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/esm/defaults.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/runtime/helpers/esm/defaults.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/runtime/helpers/esm/defaults.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/runtime/helpers/esm/defaults.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.2.1 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.2 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.1.9 node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.1.8 node_modules/@babel/runtime/helpers/esm/defaults.js
tang-0.2.0 spec/tang_app/node_modules/@babel/runtime/helpers/esm/defaults.js
trusty-cms-4.1.7 node_modules/@babel/runtime/helpers/esm/defaults.js