UNPKG
hbnvec
Version:
latest (0.2.0)
0.2.0
0.1.0
My first test package
github.com/misseshyo/hbnvec
misseshyo/hbnvec
hbnvec
/
hbnvec.js
12 lines
(11 loc)
•
238 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
= {
// return true if the two vectors are equal
equals
:
function
(
a,b
) {
if
(a.
length
!= b.
length
)
return
false
;
for
(i =
0
; i < a.
length
; i++)
if
(a[i] != b[i])
return
false
;
return
true
; }, }