This commit is contained in:
pycook
2020-02-23 18:41:23 +08:00
parent 9eaca4d6a0
commit 5dc2f89e7f
7 changed files with 32 additions and 29 deletions

View File

@@ -44,13 +44,11 @@ export function writeExcel (columns, name) {
// Determines whether an array element is empty
export function any (ArrayList) {
let flag = false
ArrayList.forEach(item => {
if (item) {
flag = true
return flag
for (let i = 0; i < ArrayList.length; i++) {
if (ArrayList[i]) {
return true
}
})
}
return false
}