(object)
| 29 | |
| 30 | |
| 31 | function classOf(object) { |
| 32 | // Argument must not be null or undefined. |
| 33 | var string = Object.prototype.toString.call(object); |
| 34 | // String has format [object <ClassName>]. |
| 35 | return string.substring(8, string.length - 1); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Compares two objects for key/value equality. |