---
title: "Discussion on \"Pick key-value pair from an object in javascript\" | Hashnode"
description: "Discussion on \"Pick key-value pair from an object in javascript\". Photo by Annie Spratt on Unsplash\n\nIt's very common that in development we needed only a few key-value pairs from an object and still, we use the whole object or we create a new one with copy-pasting key-values from one to another. What's your soluti..."
url: "https://hashnode.com/posts/pick-key-value-pair-from-an-object-in-javascript/5ea81e35927cd8e125d846c6"
---

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

Discussion

# [Pick key-value pair from an object in javascript](https://rajnishkatharotiya.hashnode.dev/pick-key-value-pair-from-an-object-in-javascript?utm_source=hashnode&utm_medium=feed)

Photo by Annie Spratt on Unsplash It's very common that in development we needed only a few key-value pairs from an object and still, we use the whole object or we create a new one with copy-pasting key-values from one to another. What's your soluti...

Apr 28, 2020 · rajnishkatharotiya.hashnode.dev  
Updated Jun 17, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#coding](https://hashnode.com/tag/coding)
-   [#reactjs-cju5ig1km000cqas1szsk1qa0](https://hashnode.com/tag/reactjs-cju5ig1km000cqas1szsk1qa0)

## Written by

[Rajnish Katharotiya](https://hashnode.com/@rajnishkatharotiya)

@rajnishkatharotiya

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

JavaScript enthusiast, Trying to learn everyday something new and share it to world before sleep via blog/vlog. 😎

## Responses 1

Markdown supported · ⌘↵ to post

[Nasidul Islam](https://hashnode.com/@nasidulislam)

[Apr 28, 2020](https://hashnode.com/posts/pick-key-value-pair-from-an-object-in-javascript/5ea81e35927cd8e125d846c6/comment/5ea86400927cd8e125d84a0c)

An elegant utility function. Great work !

[Rajnish Katharotiya](https://hashnode.com/@rajnishkatharotiya)

[Apr 28, 2020](https://hashnode.com/posts/pick-key-value-pair-from-an-object-in-javascript/5ea81e35927cd8e125d846c6/comment/5ea86400927cd8e125d84a0c#reply-5ea8649b39fd92e62578b29a)

Thanks 👍
