Skip to content

Commit 19e865d

Browse files
committed
Code Fixes
1 parent 8341006 commit 19e865d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ function object_to_array(obj) {
8585
function get_all_indexes(arr, val) {
8686
is_array(arr);
8787
var indexes = [];
88-
for(let i = 0; i < arr.length; i++)
89-
if (arr[i] === val)
88+
for (let i = 0; i < arr.length; i++) {
89+
if (arr[i] === val) {
9090
indexes.push(i);
91+
}
92+
}
9193
return indexes;
9294
}
9395

0 commit comments

Comments
 (0)