UNPKG
@exoplay/exobot-adapter-discord
Version:
latest (3.1.1)
3.1.1
3.1.0
3.0.0
2.0.0
1.1.0
1.0.1
1.0.0
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
exobot adapter for discord
github.com/exoplay/exobot-adapter-discord
exoplay/exobot-adapter-discord
@exoplay/exobot-adapter-discord
/
node_modules
/
discord.js
/
src
/
util
/
ArraysEqual.js
15 lines
(12 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module
.
exports
=
function
arraysEqual
(
a, b
) {
if
(a === b)
return
true
;
if
(a.
length
!== b.
length
)
return
false
;
for
(
const
itemInd
in
a) {
const
item = a[itemInd];
const
ind = b.
indexOf
(item);
if
(ind) { b.
splice
(ind,
1
); } }
return
b.
length
===
0
; };