adui
Version:
<div> <img src="https://wxa.wxs.qq.com/mpweb/delivery/legacy/wxadtouch/upload/t1/od834zef_52939fc6.png" style="margin:40px 0 0 -8px; background-color: #fcfcfc; box-shadow: none;" /> </div>
26 lines (19 loc) • 375 B
text/typescript
const isEqualArrays = (arrA: any[], arrB: any[]): boolean => {
if (arrA === arrB) {
return true
}
if (!arrA || !arrB) {
return false
}
const len = arrA.length
if (arrB.length !== len) {
return false
}
for (let i = 0; i < len; i += 1) {
if (arrA[i] !== arrB[i]) {
return false
}
}
return true
}
export default isEqualArrays