es7.math.degrees.js 236 B

123456789
  1. // https://rwaldron.github.io/proposal-math-extensions/
  2. var $export = require('./_export');
  3. var RAD_PER_DEG = 180 / Math.PI;
  4. $export($export.S, 'Math', {
  5. degrees: function degrees(radians) {
  6. return radians * RAD_PER_DEG;
  7. }
  8. });