isPowerOfTen

/**
 * Check if a Number is a power of ten (10, 100, 1000...)
 */
const isPowerOfTen = (n: number) => Math.log10(n) % 1 === 0;