wallet-core/node_modules/core-js/modules/es6.math.cbrt.js

10 lines
218 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
// 20.2.2.9 Math.cbrt(x)
2017-08-14 05:01:11 +02:00
var $export = require('./_export');
var sign = require('./_math-sign');
2016-10-10 03:43:44 +02:00
$export($export.S, 'Math', {
2017-08-14 05:01:11 +02:00
cbrt: function cbrt(x) {
2016-10-10 03:43:44 +02:00
return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
}
2017-08-14 05:01:11 +02:00
});