UNPKG

true-math

Version:

True Math - math library for numbers of arbitrary length

4 lines (3 loc) 133 B
export default function ifNonEmptyNum(num) { if (num.length === 0) throw new Error('Number must contain at least one symbol'); }