UNPKG

true-math

Version:

True Math - math library for numbers of arbitrary length

4 lines (3 loc) 126 B
export default function ifNumIsString(num) { if (typeof (num) !== 'string') throw new Error('Number must be a string'); }