first
This commit is contained in:
15
node_modules/core-js/modules/es.math.cbrt.js
generated
vendored
Normal file
15
node_modules/core-js/modules/es.math.cbrt.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
var $ = require('../internals/export');
|
||||
var sign = require('../internals/math-sign');
|
||||
|
||||
var abs = Math.abs;
|
||||
var pow = Math.pow;
|
||||
|
||||
// `Math.cbrt` method
|
||||
// https://tc39.es/ecma262/#sec-math.cbrt
|
||||
$({ target: 'Math', stat: true }, {
|
||||
cbrt: function cbrt(x) {
|
||||
var n = +x;
|
||||
return sign(n) * pow(abs(n), 1 / 3);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user