abs.js 207 B

1234567891011
  1. 'use strict';
  2. var GetIntrinsic = require('get-intrinsic');
  3. var $abs = GetIntrinsic('%Math.abs%');
  4. // http://262.ecma-international.org/5.1/#sec-5.2
  5. module.exports = function abs(x) {
  6. return $abs(x);
  7. };