ljoaquim 1590311121 first commit 10 months ago
..
.github 1590311121 first commit 10 months ago
constants 1590311121 first commit 10 months ago
test 1590311121 first commit 10 months ago
.eslintrc 1590311121 first commit 10 months ago
CHANGELOG.md 1590311121 first commit 10 months ago
LICENSE 1590311121 first commit 10 months ago
README.md 1590311121 first commit 10 months ago
abs.d.ts 1590311121 first commit 10 months ago
abs.js 1590311121 first commit 10 months ago
floor.d.ts 1590311121 first commit 10 months ago
floor.js 1590311121 first commit 10 months ago
isFinite.d.ts 1590311121 first commit 10 months ago
isFinite.js 1590311121 first commit 10 months ago
isInteger.d.ts 1590311121 first commit 10 months ago
isInteger.js 1590311121 first commit 10 months ago
isNaN.d.ts 1590311121 first commit 10 months ago
isNaN.js 1590311121 first commit 10 months ago
isNegativeZero.d.ts 1590311121 first commit 10 months ago
isNegativeZero.js 1590311121 first commit 10 months ago
max.d.ts 1590311121 first commit 10 months ago
max.js 1590311121 first commit 10 months ago
min.d.ts 1590311121 first commit 10 months ago
min.js 1590311121 first commit 10 months ago
mod.d.ts 1590311121 first commit 10 months ago
mod.js 1590311121 first commit 10 months ago
package.json 1590311121 first commit 10 months ago
pow.d.ts 1590311121 first commit 10 months ago
pow.js 1590311121 first commit 10 months ago
round.d.ts 1590311121 first commit 10 months ago
round.js 1590311121 first commit 10 months ago
sign.d.ts 1590311121 first commit 10 months ago
sign.js 1590311121 first commit 10 months ago
tsconfig.json 1590311121 first commit 10 months ago

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.