mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
These tests are derived from the following files within the Google V8 project: test/mjsunit/harmony/array-fill.js test/mjsunit/harmony/array-find.js test/mjsunit/harmony/array-findindex.js test/mjsunit/harmony/array-from.js test/mjsunit/harmony/array-of.js
16 lines
277 B
JavaScript
16 lines
277 B
JavaScript
|
|
//-----------------------------------------------------------------------------
|
|
function compareArray(a, b) {
|
|
if (b.length !== a.length) {
|
|
return false;
|
|
}
|
|
|
|
for (var i = 0; i < a.length; i++) {
|
|
if (b[i] !== a[i]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|