class method Object.isHash

View source on GitHub →

Object.isHash(object) → Boolean
  • object (Object) – The object to test.

Returns true if object is an instance of the Hash class; false otherwise.

Examples
Object.isHash(new Hash({ }));
//-> true
 Object.isHash($H({ }));
//-> true
 Object.isHash({ });
//-> false