---
title: "Discussion on \"Separate array of arrays into arrays\" | Hashnode"
description: "Discussion on \"Separate array of arrays into arrays\". Let's say you have an array of arrays like this:\n[ ['one', 1], ['two', 2], ['three', 3] ]\nand what you want are two arrays that are:\n['one', 'two', 'three']\n[1, 2, 3]\nHow do you do that?\nArray looping - maps and filters\nAll you have to do is to loop ..."
url: "https://hashnode.com/posts/separate-array-of-arrays-into-arrays/629c61bffe616239d48f5966"
---

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

Discussion

# [Separate array of arrays into arrays](https://blog.nicm42.me.uk/separate-array-of-arrays-into-arrays?utm_source=hashnode&utm_medium=feed)

Let's say you have an array of arrays like this: \[ \['one', 1\], \['two', 2\], \['three', 3\] \] and what you want are two arrays that are: \['one', 'two', 'three'\] \[1, 2, 3\] How do you do that? Array looping - maps and filters All you have to do is to loop ...

Jun 5, 2022 · 2 min read · blog.nicm42.me.uk  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

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

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
