UNPKG

true-math

Version:

True Math - math library for numbers of arbitrary length

8 lines (5 loc) 182 B
import {ifValidNums} from "./checkers.js"; export default function ifValidArray(arr) { if (!Array.isArray(arr)) throw new Error('Argument must be an array'); ifValidNums(arr); }