---
title: "Discussion on \"Update dictionary in typescript\" | Hashnode"
description: "Discussion on \"Update dictionary in typescript\". const object1 = { a: 1, b: 2, c: 3};\nconst object2 = Object.assign({c: 4, d: 5}, object1);\nconsole.log(object2.c, object2.d);// expected output: 3 5"
url: "https://hashnode.com/posts/update-dictionary-in-typescript-c0b5eca2f7f5/632dea853ac18d0d78a00891"
---

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

Discussion

# [Update dictionary in typescript](https://blog.junaidahmed.dev/update-dictionary-in-typescript-c0b5eca2f7f5?utm_source=hashnode&utm_medium=feed)

const object1 = { a: 1, b: 2, c: 3}; const object2 = Object.assign({c: 4, d: 5}, object1); console.log(object2.c, object2.d);// expected output: 3 5

Aug 9, 2018 · 1 min read · blog.junaidahmed.dev  
Read the article

## Written by

[Junaid Ahmed](https://hashnode.com/@junaidahmed)

@junaidahmed

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

A half-stack JavaScript developer with a focus on the frontend.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
