(object, array)
| 70 | assertEquals(areSame(actual, expected), true); |
| 71 | |
| 72 | function areSame(object, array) { |
| 73 | var result = object.length == array.length; |
| 74 | for (var i = 0; i < object.length; i++) { |
| 75 | result = result && object[i] == array[i]; |
| 76 | } |
| 77 | return result; |
| 78 | } |
| 79 | |
| 80 | |
| 81 | // Array.of does not trigger prototype setters. |