mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-29 10:00:49 +08:00
20 lines
485 B
JavaScript
20 lines
485 B
JavaScript
// 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;
|