error-if-not-all-finite-numbers
v1.0.0
Published
Function triggers error if argument is not an array entirely of finite numbers
Downloads
5
Maintainers
Readme
errorIfNotAllFiniteNumbers(values): void
Triggers error if values
is not an array entirely of finite numbers.
Each item in values
must also be of type 'number'.
Installation
npm i error-if-not-all-finite-numbers
Loading
// if using TypeScript:
import {errorIfNotAllFiniteNumbers}
from 'error-if-not-all-finite-numbers';
// if using ES5 Javascript:
var errorIfNotAllFiniteNumbers =
require('error-if-not-all-finite-numbers').errorIfNotAllFiniteNumbers;