es.reflect.has.js 240 B

123456789
  1. var $ = require('../internals/export');
  2. // `Reflect.has` method
  3. // https://tc39.github.io/ecma262/#sec-reflect.has
  4. $({ target: 'Reflect', stat: true }, {
  5. has: function has(target, propertyKey) {
  6. return propertyKey in target;
  7. }
  8. });