const isPowerOfTen = (n: number) => Math.log10(n) % 1 === 0;
      
      Typescript language logo

      Power of ten

      Codiga's TypeScript Recipes

      Checks if the given number is a power of 10.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.