aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-runtime/node_modules/core-js/modules/es6.math.cbrt.js
blob: e45ac4445f645a2d305f344f0e4a2d0eac3fb7d8 (plain)
1
2
3
4
5
6
7
8
9
// 20.2.2.9 Math.cbrt(x)
var $export = require('./_export');
var sign = require('./_math-sign');

$export($export.S, 'Math', {
  cbrt: function cbrt(x) {
    return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
  }
});