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