const divmod = (x: number, y: number) => [Math.floor(x / y), x % y];
      
      Typescript language logo

      Mod of division

      Codiga's TypeScript Recipes

      Returns an array consisting of the quotient and the remainder of the given numbers.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.