Skip to content

Commit c7789ac

Browse files
authored
Update index.js
1 parent d333511 commit c7789ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export function convert(total, length, output = []) {
77

88
// Binary array merge, array input can't have more then 32 values because of JavaScript limatation with bitwise operations.
99
export function BAM(arrays = [], or = true) {
10+
if (!Array.isArray(arrays)) return false;
11+
1012
const data = {
1113
length: arrays.reduce(
1214
(accumulator, currentValue) => {

0 commit comments

Comments
 (0)