source:
imaps-frontend/node_modules/es-abstract/2024/abs.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 207 bytes |
Line | |
---|---|
1 | 'use strict'; |
2 | |
3 | var GetIntrinsic = require('get-intrinsic'); |
4 | |
5 | var $abs = GetIntrinsic('%Math.abs%'); |
6 | |
7 | // http://262.ecma-international.org/5.1/#sec-5.2 |
8 | |
9 | module.exports = function abs(x) { |
10 | return $abs(x); |
11 | }; |
Note:
See TracBrowser
for help on using the repository browser.