_has.js 222 B

123456
  1. import { hasOwnProperty } from './_setup.js';
  2. // Internal function to check whether `key` is an own property name of `obj`.
  3. export default function has(obj, key) {
  4. return obj != null && hasOwnProperty.call(obj, key);
  5. }