chore: replace ~~ with Math.trunc in res.length (option) (#1288)
This commit is contained in:
parent
7e46c2058c
commit
9be8583125
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ module.exports = {
|
|||
return;
|
||||
}
|
||||
|
||||
return ~~len;
|
||||
return Math.trunc(len) || 0;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue