1 /** Used for built-in method references. */
2 var objectProto = Object.prototype;
4 /** Used to check objects for own properties. */
5 var hasOwnProperty = objectProto.hasOwnProperty;
8 * The base implementation of `_.has` without support for deep paths.
11 * @param {Object} [object] The object to query.
12 * @param {Array|string} key The key to check.
13 * @returns {boolean} Returns `true` if `key` exists, else `false`.
15 function baseHas(object, key) {
16 return object != null && hasOwnProperty.call(object, key);
19 module.exports = baseHas;