UNPKG
@benev/nubs
Version:
latest (0.3.0-dev.2)
0.3.0-dev.2
0.3.0-dev.1
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
0.0.0-dev.0
user-input system for web games
github.com/benevolent-games/nubs
benevolent-games/nubs
@benev/nubs
/
s
/
tools
/
compare-string-arrays.ts
13 lines
(9 loc)
•
212 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
function
compareStringArrays
(
array1
:
string
[],
array2
:
string
[]
) {
if
(array1.
length
!== array2.
length
) {
return
false
; }
return
array1.
every
(
(
element, index
) =>
element === array2[index]); }