You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.8 KiB

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