export function numberLength(number) { let length = 0; let n = Math.abs(number); do { n /= 10; length++; } while (n >= 1); return length; } export default numberLength;