1 var nativeCreate = require('./_nativeCreate');
3 /** Used to stand-in for `undefined` hash values. */
4 var HASH_UNDEFINED = '__lodash_hash_undefined__';
6 /** Used for built-in method references. */
7 var objectProto = Object.prototype;
9 /** Used to check objects for own properties. */
10 var hasOwnProperty = objectProto.hasOwnProperty;
13 * Gets the hash value for `key`.
16 * @param {Object} hash The hash to query.
17 * @param {string} key The key of the value to get.
18 * @returns {*} Returns the entry value.
20 function hashGet(hash, key) {
22 var result = hash[key];
23 return result === HASH_UNDEFINED ? undefined : result;
25 return hasOwnProperty.call(hash, key) ? hash[key] : undefined;
28 module.exports = hashGet;