Sha256: c7c77fd89547ffc740703b73ba820165c6f05088c523b73b57ab0ebae61fbd20

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

export default (function get(object, property, receiver) {
  if (object === null) object = Function.prototype;
  var desc = Object.getOwnPropertyDescriptor(object, property);

  if (desc === undefined) {
    var parent = Object.getPrototypeOf(object);

    if (parent === null) {
      return undefined;
    } else {
      return get(parent, property, receiver);
    }
  } else if ("value" in desc) {
    return desc.value;
  } else {
    var getter = desc.get;

    if (getter === undefined) {
      return undefined;
    }

    return getter.call(receiver);
  }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wabur-0.7.0 export/assets/js/vendor/plugin-babel/babel-helpers/get.js
wabur-0.6.2 export/assets/js/vendor/plugin-babel/babel-helpers/get.js
wabur-0.6.1 export/assets/js/vendor/plugin-babel/babel-helpers/get.js
wabur-0.6.0 export/assets/js/vendor/plugin-babel/babel-helpers/get.js
wabur-0.5.0 export/assets/js/vendor/plugin-babel/babel-helpers/get.js