Hash.js 392 B

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