chore: replace ~~ with Math.trunc in res.length (option) (#1288)

This commit is contained in:
jeremiG 2018-12-27 03:22:35 -05:00 committed by Yiyu He
parent 7e46c2058c
commit 9be8583125

View file

@ -211,7 +211,7 @@ module.exports = {
return;
}
return ~~len;
return Math.trunc(len) || 0;
},
/**