source: imaps-frontend/node_modules/core-js/modules/es.math.cbrt.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 334 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var sign = require('../internals/math-sign');
4
5var abs = Math.abs;
6var pow = Math.pow;
7
8// `Math.cbrt` method
9// https://tc39.es/ecma262/#sec-math.cbrt
10$({ target: 'Math', stat: true }, {
11 cbrt: function cbrt(x) {
12 var n = +x;
13 return sign(n) * pow(abs(n), 1 / 3);
14 }
15});
Note: See TracBrowser for help on using the repository browser.