MCPcopy Create free account
hub / github.com/deployd/deployd / arrayEquals

Function arrayEquals

test-app/public/sinon.js:1640–1648  ·  view source on GitHub ↗
(arr1, arr2, compareLength)

Source from the content-addressed store, hash-verified

1638 }
1639
1640 function arrayEquals(arr1, arr2, compareLength) {
1641 if (compareLength && arr1.length !== arr2.length) {
1642 return false;
1643 }
1644
1645 return every(arr1, function(element, i) {
1646 return deepEqual(arr2[i], element);
1647 });
1648 }
1649
1650 extend(mock, {
1651 create: function create(object) {

Callers 1

sinon.jsFile · 0.85

Calls 2

everyFunction · 0.85
deepEqualFunction · 0.85

Tested by

no test coverage detected