diff --git a/src/plugins/methodsExtend.js b/src/plugins/methodsExtend.js index 267b688..90589cd 100644 --- a/src/plugins/methodsExtend.js +++ b/src/plugins/methodsExtend.js @@ -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 }