projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
core-js
/
modules
/
es.math.cbrt.js
1
var $ = require('../internals/export');
2
var sign = require('../internals/math-sign');
3
4
var abs = Math.abs;
5
var pow = Math.pow;
6
7
// `Math.cbrt` method
8
// https://tc39.es/ecma262/#sec-math.cbrt
9
$({ target: 'Math', stat: true }, {
10
cbrt: function cbrt(x) {
11
return sign(x = +x) * pow(abs(x), 1 / 3);
12
}
13
});