Sha256: ef7896d1bcbe9141e9b3c010322fe0b74d743437eb2cdb951930d4a16bf734aa

Contents?: true

Size: 269 Bytes

Versions: 83

Compression:

Stored size: 269 Bytes

Contents

export default function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

Version data entries

83 entries across 82 versions & 12 rubygems

Version Path
tang-0.1.0 spec/tang_app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
tang-0.0.9 spec/tang_app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
trusty-cms-4.1.6 node_modules/@babel/runtime/helpers/esm/defineProperty.js
trusty-cms-4.1.5 node_modules/@babel/runtime/helpers/esm/defineProperty.js
enju_library-0.3.8 spec/dummy/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
jester-data-8.0.0 node_modules/@babel/runtime/helpers/esm/defineProperty.js
ezii-os-5.2.1 node_modules/@babel/runtime/helpers/esm/defineProperty.js
ezii-os-2.0.1 node_modules/@babel/runtime/helpers/esm/defineProperty.js
ezii-os-1.1.0 node_modules/@babel/runtime/helpers/esm/defineProperty.js
ezii-os-1.0.0 node_modules/@babel/runtime/helpers/esm/defineProperty.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/defineProperty.js
ezii-os-0.0.0.1.0 node_modules/@babel/runtime/helpers/esm/defineProperty.js