TypeScript Foundations Arrays and Collections
This course covers four specific data structures: arrays, tuples, sets and maps. The main goal is to understand how these structures work in TypeScript.
It is important to remember that TypeScript is a superset of JavaScript: it is built on top of the JavaScript language. Some of these collections already existed in JavaScript even before TypeScript appeared. This is why each collection is first presented in its pure JavaScript version, before discussing the specific contributions of TypeScript — this allows you to better distinguish what belongs to one or the other.
Collections are data structures often integrated directly into programming languages. They allow groups of data to be stored and manipulated much more efficiently than storing them separately in multiple variables.
Sign in to read this course
A free account unlocks all 514 courses. 20 are readable without one.
What's inside
8 sections- 1 Table of Contents
- 2 Introduction to Collections
- 3 Arrays
- 4 Tuples
- 5 Sets
- 6 Maps
- 7 Comparative table of the four collections
- 8 Demo files
More React & TypeScript courses
View all 15React Fundamentals
React from scratch — JSX, components, styling, hooks, props/state, side effects and forms.
Working with Components in React
Implement components, share state with Context, handle errors and improve component UI performance.
Working with Data in React
Core data patterns, Context for data and forms, Suspense, enterprise features and Server Actions.
Managing State in React 18
Local, remote, URL and web-storage state, derived state, forms, refs, useReducer and Context.
Using Hooks in React 19
Built-in hooks and custom hooks, performance with memoization and forms with useActionState.
Styling Apps in React 18
Compare React styling techniques — CSS-in-JS (styled-jsx) and CSS Modules with best practices.
Interested in this course?
Contact us to book it or get a custom training plan for your team.