Sha256: f9f6ab18d3971366071866dc1ca8ea1b5927056fd3458c71f224c2c7ecf369b9

Contents?: true

Size: 600 Bytes

Versions: 48

Compression:

Stored size: 600 Bytes

Contents

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

function _get(target, property, receiver) {
  if (typeof Reflect !== "undefined" && Reflect.get) {
    module.exports = _get = Reflect.get;
  } else {
    module.exports = _get = function _get(target, property, receiver) {
      var base = superPropBase(target, property);
      if (!base) return;
      var desc = Object.getOwnPropertyDescriptor(base, property);

      if (desc.get) {
        return desc.get.call(receiver);
      }

      return desc.value;
    };
  }

  return _get(target, property, receiver || target);
}

module.exports = _get;

Version data entries

48 entries across 48 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/runtime/helpers/get.js
disco_app-0.18.0 test/dummy/node_modules/@babel/runtime/helpers/get.js
disco_app-0.18.2 test/dummy/node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.7 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.6 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.5 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.4 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.3 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.2 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.1 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3.5 node_modules/@babel/runtime/helpers/get.js
trusty-cms-5.0.0 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/get.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/get.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/get.js