---
title: "Discussion on \"How to conditionally pass a key to a javascript Object\" | Hashnode"
description: "Discussion on \"How to conditionally pass a key to a javascript Object\". Conditionally pass a key and value pair to an Object in Javascript"
url: "https://hashnode.com/posts/how-to-conditionally-pass-a-key-to-a-javascript-object/62dbe0fc38759e6b4982a5bb"
---

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

Discussion

# [How to conditionally pass a key to a javascript Object](https://michellead.hashnode.dev/how-to-conditionally-pass-a-key-to-a-javascript-object?utm_source=hashnode&utm_medium=feed)

Conditionally pass a key and value pair to an Object in Javascript

Jul 23, 2022 · 1 min read · michellead.hashnode.dev  
Read the article

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

## Written by

[Micheal Adisa](https://hashnode.com/@michellead)

@michellead · Lagos, Nigeria.

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

Software Engineer

I am a software engineer and technical writer with experience in crafting great products. I craft products with excellent user experience.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
