租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
490 B

6 months ago
  1. 'use strict';
  2. var callBind = require('call-bind');
  3. var gOPD = require('gopd');
  4. // eslint-disable-next-line no-extra-parens, no-proto
  5. var hasProto = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
  6. // eslint-disable-next-line no-extra-parens
  7. var dunderGetter = hasProto && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
  8. module.exports = dunderGetter && dunderGetter.get && callBind(dunderGetter.get);