Arrays in TypeScript We want to store information about a user's profile settings: type ProfileSettings = string[]; const settings: ProfileSettings = [ "darkMode", // theme "compact", // layout "12", // fontSize "true", // notifications ]; ...

Markdown supported · ⌘↵ to post
No responses yet.