esnext.math.degrees.js 273 B

1234567891011
  1. var $ = require('../internals/export');
  2. var RAD_PER_DEG = 180 / Math.PI;
  3. // `Math.degrees` method
  4. // https://rwaldron.github.io/proposal-math-extensions/
  5. $({ target: 'Math', stat: true }, {
  6. degrees: function degrees(radians) {
  7. return radians * RAD_PER_DEG;
  8. }
  9. });