We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7743e1 commit e5b5cf6Copy full SHA for e5b5cf6
Maths/PerfectCube.js
@@ -4,7 +4,6 @@
4
*
5
* Infinity is an undefined cube, so return false for any sign.
6
* This uses `round` instead of `floor` or `trunc`, to guard against rounding errors.
7
- * currently, the function doesn't support `BigInt`s
8
*/
9
10
const perfectCube = (num) => Number.isFinite(num) && Math.round(Math.cbrt(num)) ** 3 === num
0 commit comments