潘超林 b17e38f0e7 新建 1 anno fa
..
.github b17e38f0e7 新建 1 anno fa
constants b17e38f0e7 新建 1 anno fa
test b17e38f0e7 新建 1 anno fa
.eslintrc b17e38f0e7 新建 1 anno fa
CHANGELOG.md b17e38f0e7 新建 1 anno fa
LICENSE b17e38f0e7 新建 1 anno fa
README.md b17e38f0e7 新建 1 anno fa
abs.d.ts b17e38f0e7 新建 1 anno fa
abs.js b17e38f0e7 新建 1 anno fa
floor.d.ts b17e38f0e7 新建 1 anno fa
floor.js b17e38f0e7 新建 1 anno fa
isFinite.d.ts b17e38f0e7 新建 1 anno fa
isFinite.js b17e38f0e7 新建 1 anno fa
isInteger.d.ts b17e38f0e7 新建 1 anno fa
isInteger.js b17e38f0e7 新建 1 anno fa
isNaN.d.ts b17e38f0e7 新建 1 anno fa
isNaN.js b17e38f0e7 新建 1 anno fa
isNegativeZero.d.ts b17e38f0e7 新建 1 anno fa
isNegativeZero.js b17e38f0e7 新建 1 anno fa
max.d.ts b17e38f0e7 新建 1 anno fa
max.js b17e38f0e7 新建 1 anno fa
min.d.ts b17e38f0e7 新建 1 anno fa
min.js b17e38f0e7 新建 1 anno fa
mod.d.ts b17e38f0e7 新建 1 anno fa
mod.js b17e38f0e7 新建 1 anno fa
package.json b17e38f0e7 新建 1 anno fa
pow.d.ts b17e38f0e7 新建 1 anno fa
pow.js b17e38f0e7 新建 1 anno fa
round.d.ts b17e38f0e7 新建 1 anno fa
round.js b17e38f0e7 新建 1 anno fa
sign.d.ts b17e38f0e7 新建 1 anno fa
sign.js b17e38f0e7 新建 1 anno fa
tsconfig.json b17e38f0e7 新建 1 anno fa

README.md

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.