---
title: "Discussion on \"Destructuring vs. Rest\" | Hashnode"
description: "Discussion on \"Destructuring vs. Rest\". Photo by The Creative Exchange on Unsplash\nHow are Destructuring and Rest similar like the Bryan Cranston twins you ask?\n\nWell, destructuring and rest both unpack values from arrays, or properties from objects, and set them to local variables.\n\nHow a..."
url: "https://hashnode.com/posts/destructuring-vs-rest/60941646a7a3827bb64ce3bf"
---

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

Discussion

# [Destructuring vs. Rest](https://devduffy.hashnode.dev/destructuring-vs-rest?utm_source=hashnode&utm_medium=feed)

Photo by The Creative Exchange on Unsplash How are Destructuring and Rest similar like the Bryan Cranston twins you ask? Well, destructuring and rest both unpack values from arrays, or properties from objects, and set them to local variables. How a...

May 6, 2021 · 2 min read · devduffy.hashnode.dev  
Read the article

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

## Written by

[Brendan Duffy](https://hashnode.com/@devduffy)

@devduffy

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
