polyfills.Math.cbrt.raw.js Maven / Gradle / Ivy
The newest version!
// Math.cbrt
Math.cbrt = function cbrt(x) {
var y = Math.pow(Math.abs(x), 1 / 3);
return x < 0 ? -y : y;
};
// Math.cbrt
Math.cbrt = function cbrt(x) {
var y = Math.pow(Math.abs(x), 1 / 3);
return x < 0 ? -y : y;
};