1.0.0 • Published 3 years ago

math.log10 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Math.log10 Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Math.log10 shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Getting started

npm install --save math.log10

Usage/Examples

console.log(Math.log10(2)); // 0.3010299956639812
console.log(Math.log10(1)); // 0
console.log(Math.log10(0)); // -Infinity
console.log(Math.log10(-2)); // NaN
console.log(Math.log10(100000)); // 5

Tests

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