---
title: "Discussion on \"How To Convert A TypeScript Enum To A JavaScript Array Or String\" | Hashnode"
description: "Discussion on \"How To Convert A TypeScript Enum To A JavaScript Array Or String\". Converting a TypeScript Enum to a JavaScript Array is pretty easy, and I often use it to fill a <select> with all the values from that enum.\nIn this post, I love to show you how you can subtract the data from the enum and remodel it into a JavaScript..."
url: "https://hashnode.com/posts/how-to-convert-a-typescript-enum-to-a-javascript-array-or-string/631203eb56df9e8e5025fde5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Convert A TypeScript Enum To A JavaScript Array Or String](https://hasnode.byrayray.dev/how-to-convert-a-typescript-enum-to-a-javascript-array-or-string?utm_source=hashnode&utm_medium=feed)

Converting a TypeScript Enum to a JavaScript Array is pretty easy, and I often use it to fill a <select> with all the values from that enum. In this post, I love to show you how you can subtract the data from the enum and remodel it into a JavaScript...

Sep 2, 2022 · 4 min read · hasnode.byrayray.dev  
Updated Dec 1, 2022  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Dev By RayRay](https://hashnode.com/@devbyrayray)

@devbyrayray · Netherlands

  
[View profile](https://hashnode.com/@devbyrayray)

Tech Lead / Lead Developer in the 🇳🇱 https://byrayray.dev/

🚀 Tech Lead / Lead Developer 🔥 Writing about CSS, JavaScript, Typescript, Angular, Vue.js, Nuxt.js, Serverless functions, and a lot more web-related topics. https://byrayray.dev/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
