Compare commits
1 Commits
0c8f99de78
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
7b67722ca4
|
4
index.js
4
index.js
@@ -116,8 +116,10 @@ function checkAPI() {
|
|||||||
|
|
||||||
let items = [];
|
let items = [];
|
||||||
for (let j = 0; j < data.length; j++) {
|
for (let j = 0; j < data.length; j++) {
|
||||||
if (data[j] != undefined || data[j] != null) {
|
if (data[j] != undefined && data[j] != null) {
|
||||||
items.push(SERVICE_FUNC[s](data[j]));
|
items.push(SERVICE_FUNC[s](data[j]));
|
||||||
|
} else {
|
||||||
|
data.splice(j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user