first commit
This commit is contained in:
20
node_modules/stylelint/lib/utils/arrayEqual.cjs
generated
vendored
Normal file
20
node_modules/stylelint/lib/utils/arrayEqual.cjs
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Tests if two arrays are equal.
|
||||
*
|
||||
* @param {unknown} a
|
||||
* @param {unknown} b
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function arrayEqual(a, b) {
|
||||
if (!Array.isArray(a) || !Array.isArray(b)) return false;
|
||||
|
||||
if (a.length !== b.length) return false;
|
||||
|
||||
return a.every((elem, index) => elem === b[index]);
|
||||
}
|
||||
|
||||
module.exports = arrayEqual;
|
||||
Reference in New Issue
Block a user