1 var nativeCreate = require('./_nativeCreate');
3 /** Used for built-in method references. */
4 var objectProto = Object.prototype;
6 /** Used to check objects for own properties. */
7 var hasOwnProperty = objectProto.hasOwnProperty;
10 * Checks if a hash value for `key` exists.
13 * @param {Object} hash The hash to query.
14 * @param {string} key The key of the entry to check.
15 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
17 function hashHas(hash, key) {
18 return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key);
21 module.exports = hashHas;