add some new fun
This commit is contained in:
parent
f57675006a
commit
13a25379a5
|
@ -41,7 +41,7 @@ export function multipleSum (...num) {
|
|||
export function filterNull (arr) {
|
||||
const tmpArr = []
|
||||
|
||||
arr.forEach(v => (v && tmpArr.push(v)))
|
||||
arr.forEach(v => ((v || v === 0) && tmpArr.push(v)))
|
||||
|
||||
return tmpArr
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue