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

9 lines
218 B
JavaScript
Raw Normal View History

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