mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
20 lines
440 B
JavaScript
20 lines
440 B
JavaScript
define(['./_nativeCreate'], function(nativeCreate) {
|
|
|
|
/** Used for built-in method references. */
|
|
var objectProto = Object.prototype;
|
|
|
|
/**
|
|
* Creates an hash object.
|
|
*
|
|
* @private
|
|
* @constructor
|
|
* @returns {Object} Returns the new hash object.
|
|
*/
|
|
function Hash() {}
|
|
|
|
// Avoid inheriting from `Object.prototype` when possible.
|
|
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
|
|
|
return Hash;
|
|
});
|