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

master
jeremiG 2018-12-27 03:22:35 -05:00 committed by Yiyu He
parent 7e46c2058c
commit 9be8583125
1 changed files with 1 additions and 1 deletions

View File

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