From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- node_modules/moment/src/lib/utils/compare-arrays.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 node_modules/moment/src/lib/utils/compare-arrays.js (limited to 'node_modules/moment/src/lib/utils/compare-arrays.js') diff --git a/node_modules/moment/src/lib/utils/compare-arrays.js b/node_modules/moment/src/lib/utils/compare-arrays.js deleted file mode 100644 index 3e37b53..0000000 --- a/node_modules/moment/src/lib/utils/compare-arrays.js +++ /dev/null @@ -1,18 +0,0 @@ -import toInt from './to-int'; - -// compare two arrays, return the number of differences -export default function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ( - (dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) - ) { - diffs++; - } - } - return diffs + lengthDiff; -} -- cgit