From 13a25379a52e68dae01b5dfc5bda003a57de3cee Mon Sep 17 00:00:00 2001 From: jiaming <743192023@qq.com> Date: Sat, 22 Dec 2018 20:56:01 +0800 Subject: [PATCH] add some new fun --- src/plugins/methodsExtend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }