---
title: "Discussion on \"How the delete operator can be your super saver!\" | Hashnode"
description: "Discussion on \"How the delete operator can be your super saver!\". In this article lets discuss how the delete operator in javascript can be your rescuer. I'm jotting down my learning and working experience, so that others may found useful.\nRecently I came up with a scenario where there is an array of objects with t..."
url: "https://hashnode.com/posts/how-the-delete-operator-can-be-your-super-saver/5f781a057d160d41227d7273"
---

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

Discussion

# [How the delete operator can be your super saver!](https://ramyachinnadurai.in/how-the-delete-operator-can-be-your-super-saver?utm_source=hashnode&utm_medium=feed)

In this article lets discuss how the delete operator in javascript can be your rescuer. I'm jotting down my learning and working experience, so that others may found useful. Recently I came up with a scenario where there is an array of objects with t...

Oct 3, 2020 · 5 min read · ramyachinnadurai.in  
Read the article

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

## Written by

[Ramya Chinnadurai](https://hashnode.com/@ramyachinnadurai)

@ramyachinnadurai · Planet Earth

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

Full stack web developer | A passionate programmer and curious learner | Building https://100daysof.codes

Full Stack Developer. Javascript enthusiastic 😎 A passionate programmer and curious learner 💻

## Responses 1

Markdown supported · ⌘↵ to post

[Pavan Mehta](https://hashnode.com/@pavanmehta)

[Oct 5, 2020](https://hashnode.com/posts/how-the-delete-operator-can-be-your-super-saver/5f781a057d160d41227d7273/comment/5f7a72819c3b6e4101217c03)

You could also use rest operator for doing this.

```
const { type, status,_id, ...rest} = value
            const details  = {
                        [type]: {
                        ...rest
                }
            }
            return {...acc, ...details}
```
