math-intrinsics

ES Math-related intrinsics and helpers, robustly cached.

MIT 2 个版本
安装
npm install math-intrinsics
yarn add math-intrinsics
pnpm add math-intrinsics
bun add math-intrinsics
README

math-intrinsics Version Badge

github actions coverage License Downloads

npm badge

ES Math-related intrinsics and helpers, robustly cached.

  • abs
  • floor
  • isFinite
  • isInteger
  • isNaN
  • isNegativeZero
  • max
  • min
  • mod
  • pow
  • round
  • sign
  • constants/maxArrayLength
  • constants/maxSafeInteger
  • constants/maxValue

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

版本列表
1.1.0 2024-12-19
1.0.0 2024-12-11