lodash
Version:
Lodash modular utilities.
18 lines (13 loc) • 404 B
JavaScript
var nativeCreate = require('./nativeCreate');
/** Used for built-in method references. */
var objectProto = global.Object.prototype;
/**
* Creates an hash object.
*
* @private
* @returns {Object} Returns the new hash object.
*/
function Hash() {}
// Avoid inheriting from `Object.prototype` when possible.
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
module.exports = Hash;