_has.js 228 B

12345678
  1. var _setup = require('./_setup.js');
  2. // Internal function to check whether `key` is an own property name of `obj`.
  3. function has(obj, key) {
  4. return obj != null && _setup.hasOwnProperty.call(obj, key);
  5. }
  6. module.exports = has;