esnext.math.radians.js 287 B

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