1 | # math-intrinsics <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
---|
2 |
|
---|
3 | [![github actions][actions-image]][actions-url]
|
---|
4 | [![coverage][codecov-image]][codecov-url]
|
---|
5 | [![License][license-image]][license-url]
|
---|
6 | [![Downloads][downloads-image]][downloads-url]
|
---|
7 |
|
---|
8 | [![npm badge][npm-badge-png]][package-url]
|
---|
9 |
|
---|
10 | ES Math-related intrinsics and helpers, robustly cached.
|
---|
11 |
|
---|
12 | - `abs`
|
---|
13 | - `floor`
|
---|
14 | - `isFinite`
|
---|
15 | - `isInteger`
|
---|
16 | - `isNaN`
|
---|
17 | - `isNegativeZero`
|
---|
18 | - `max`
|
---|
19 | - `min`
|
---|
20 | - `mod`
|
---|
21 | - `pow`
|
---|
22 | - `round`
|
---|
23 | - `sign`
|
---|
24 | - `constants/maxArrayLength`
|
---|
25 | - `constants/maxSafeInteger`
|
---|
26 | - `constants/maxValue`
|
---|
27 |
|
---|
28 |
|
---|
29 | ## Tests
|
---|
30 | Simply clone the repo, `npm install`, and run `npm test`
|
---|
31 |
|
---|
32 | ## Security
|
---|
33 |
|
---|
34 | Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
---|
35 |
|
---|
36 | [package-url]: https://npmjs.org/package/math-intrinsics
|
---|
37 | [npm-version-svg]: https://versionbadg.es/es-shims/math-intrinsics.svg
|
---|
38 | [deps-svg]: https://david-dm.org/es-shims/math-intrinsics.svg
|
---|
39 | [deps-url]: https://david-dm.org/es-shims/math-intrinsics
|
---|
40 | [dev-deps-svg]: https://david-dm.org/es-shims/math-intrinsics/dev-status.svg
|
---|
41 | [dev-deps-url]: https://david-dm.org/es-shims/math-intrinsics#info=devDependencies
|
---|
42 | [npm-badge-png]: https://nodei.co/npm/math-intrinsics.png?downloads=true&stars=true
|
---|
43 | [license-image]: https://img.shields.io/npm/l/math-intrinsics.svg
|
---|
44 | [license-url]: LICENSE
|
---|
45 | [downloads-image]: https://img.shields.io/npm/dm/es-object.svg
|
---|
46 | [downloads-url]: https://npm-stat.com/charts.html?package=math-intrinsics
|
---|
47 | [codecov-image]: https://codecov.io/gh/es-shims/math-intrinsics/branch/main/graphs/badge.svg
|
---|
48 | [codecov-url]: https://app.codecov.io/gh/es-shims/math-intrinsics/
|
---|
49 | [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/math-intrinsics
|
---|
50 | [actions-url]: https://github.com/es-shims/math-intrinsics/actions
|
---|