Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

math.log10

es-shims86MIT1.0.0

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

Math, log10, Math.log10, shim, polyfill, es-shim, API

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.0 - 2021-08-31

Commits

  • Initial commit 87a76f5
  • Implement Math.log10 polyfill 198d76e
  • [actions] update workflows c94ec06
  • Remove most of the ESM files 1aead0d
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape 9c0fcf1
  • [readme] add github actions/codecov badges 464270b
  • [Deps] update call-bind 56ab3cb