MCPcopy Index your code
hub / github.com/csev/py4e / compareArrays

Function compareArrays

code/gmane/Chart.bundle.js:1807–1819  ·  view source on GitHub ↗
(array1, array2, dontConvert)

Source from the content-addressed store, hash-verified

1805 }
1806
1807 function compareArrays(array1, array2, dontConvert) {
1808 var len = Math.min(array1.length, array2.length),
1809 lengthDiff = Math.abs(array1.length - array2.length),
1810 diffs = 0,
1811 i;
1812 for (i = 0; i < len; i++) {
1813 if ((dontConvert && array1[i] !== array2[i]) ||
1814 (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
1815 diffs++;
1816 }
1817 }
1818 return diffs + lengthDiff;
1819 }
1820
1821 function Locale() {
1822 }

Callers 2

chooseLocaleFunction · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected