const nums: number[] = [2, 4, 6, 8, 1, 3, 5, 7];
      Math.min(...nums);
      

      Typescript language logo
      Min value in array

      Codiga's TypeScript Recipes

      Return min value inside array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.