MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / compareArray

Function compareArray

tools/test262/harness.js:157–167  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

155};
156
157function compareArray(a, b) {
158 if (b.length !== a.length) {
159 return false;
160 }
161 for (var i = 0; i < a.length; i++) {
162 if (!assert._isSameValue(b[i], a[i])) {
163 return false;
164 }
165 }
166 return true;
167}
168
169compareArray.format = function (arrayLike) {
170 return `[${Array.prototype.map.call(arrayLike, String).join(', ')}]`;

Callers 1

harness.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected