es.reflect.has.js 247 B

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