UNPKG

408 BJavaScriptView Raw
1import nativeCreate from './_nativeCreate';
2
3/** Used for built-in method references. */
4var objectProto = Object.prototype;
5
6/**
7 * Creates a hash object.
8 *
9 * @private
10 * @constructor
11 * @returns {Object} Returns the new hash object.
12 */
13function Hash() {}
14
15// Avoid inheriting from `Object.prototype` when possible.
16Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
17
18export default Hash;