Package detail

number.isfinite

es-shims3kMIT1.0.1

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

Number.isFinite, number, isfinite, is-finite

readme

Number.isFinite Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Number.isFinite 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 number.isfinite

Usage/Examples

var x = 0.007;

console.log(Number.isFinite(3)); // true
console.log(Number.isFinite(Infinity)); // false
console.log(Number.isFinite("7")); // false

Tests

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.1 - 2021-12-12

Commits

  • [actions] reuse common workflows 8272237
  • [Refactor] remove ESM entry points 56b101a
  • [Dev Deps] update eslint, @ljharb/eslint-config, @es-shims/api, safe-publish-latest, tape f5d49b4
  • [actions] update codecov uploader 46c67de
  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, tape 46bf1ec
  • [readme] fix badge markdown df53f33
  • [Tests] add @es-shims/api afe8b0b

v1.0.0 - 2021-05-17

Commits

  • Initial commit feef354
  • Tests 41cdf6b
  • [actions] use node/install instead of node/run; use codecov action 10e30e2
  • Implementation a4ed25c
  • [readme] add actions and codecov badges aef0371
  • [meta] use prepublishOnly script for npm 7+ 3839221
  • [Tests] increase coverage f1cfa71