<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tuple on BradCypert.com</title>
    <link>https://www.bradcypert.com/tags/tuple/</link>
    <description>Recent content in Tuple on BradCypert.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 27 Dec 2022 16:51:00 -0500</lastBuildDate>
    <atom:link href="https://www.bradcypert.com/tags/tuple/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TypeScript Tuples</title>
      <link>https://www.bradcypert.com/typescript-tuples/</link>
      <pubDate>Thu, 09 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://www.bradcypert.com/typescript-tuples/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.typescriptlang.org/docs/handbook/basic-types.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;TypeScript offers a plethora of types&lt;/a&gt;&#xA; for developers to leverage, but some of the types may be ones that you’re unfamiliar with. Take the tuple, for example. &lt;a href=&#34;https://stackoverflow.com/questions/4512405/javascript-variable-assignments-from-tuples&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;JavaScript doesn’t have a concept of tuples&lt;/a&gt;&#xA;, so figuring out how and when to use one might feel tricky. Thankfully, Tuples are pretty simple and are used by popular frameworks, like React.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-a-tuple&#34;&gt;What is a tuple?&lt;/h2&gt;&#xA;&lt;p&gt;Tuples allow you to express an array with a fixed number of elements of which each element may be of a different type. For example, an array of two elements where the first is a string and the second is a number can be represented with a tuple. A tuple could also be used to express an array containing three elements — a string, a boolean, and an object respectively.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
