const address: [string, number] = ["Codiga", 42];
      Typescript language logo

      Tuple variable

      Codiga's TypeScript Recipes

      Tuple types allow you to express an array where the type of a fixed number of elements is known, but need not be the same.


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.