Friday, March 11, 2022

Typescript Tuples, and How They Work

In Javascript, we are expecting a new primitive data type called a Tuple to appear soon. In Typescript, however, the concept of Tuple already exists.

A Tuple in Typescript is, much like in Javascript, an array, and it has a known length where every item has a known type.



from DZone.com Feed https://ift.tt/sO9oTBC

No comments:

Post a Comment