<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx" -->

---
title: The Differences Between 'Object', '{}', and 'object' in...
description: In TypeScript, 'Object', '{}', and 'object' serve distinct purposes. 'Object' (uppercase) describes properties common to all JavaScript objects and can have...
canonical: https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Differences Between 'Object', '{}', and 'object' in TypeScript | daily.dev
og:description: In TypeScript, 'Object', '{}', and 'object' serve distinct purposes. 'Object' (uppercase) describes properties common to all JavaScript objects and can have...
og:url: https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx
og:image: https://api.daily.dev/og/posts/0ovWxcgqx.png
og:image:alt: The Differences Between 'Object', '{}', and 'object' in TypeScript
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Differences Between 'Object', '{}', and 'object' in TypeScript

**[Community Picks](https://daily.dev/sources/community)** · [@zacharylee](https://daily.dev/zacharylee) · 2 min read · 575 upvotes · 10 comments

## Summary

In TypeScript, 'Object', '{}', and 'object' serve distinct purposes. 'Object' (uppercase) describes properties common to all JavaScript objects and can have boxable objects like string, boolean, etc. '{}' describes an object with no members and behaves similarly to 'Object' but represents a different concept. 'object' (lowercase) refers to any non-primitive type. 'Record<string, any>' is also often used to represent non-primitive types and is more semantic.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/zacharylee/the-differences-between-object-and-object-in-typescript-f6f>

## Community discussion

Top comments from developers on daily.dev.

**@eduardojpanzo** · 3 upvotes

> eu gostei ✅

**@sam350** · 1 upvotes

> Still can't get the difference

**@syedumair** · 0 upvotes

> Very Useful.

**@farrrukh** · 0 upvotes

> Also, the `arrays` are Non Primitive.

**@joaopenas** · 0 upvotes

> Clean and simple explanation.
> Thanks

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Differences Between 'Object', '{}', and 'object' in TypeScript","url":"https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx"},"datePublished":"2024-07-24T11:15:05.522Z","dateModified":"2024-07-25T08:00:07.675Z","description":"In TypeScript, 'Object', '{}', and 'object' serve distinct purposes. 'Object' (uppercase) describes properties common to all JavaScript objects and can have...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3773ff77ff151e19f57bb06d70c9efc2?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3773ff77ff151e19f57bb06d70c9efc2?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Zachary","url":"https://daily.dev/zacharylee","image":"https://lh3.googleusercontent.com/a/ACg8ocIW9DADxIZCxJ2-g1tdzwyzcIVoX9kDFBipK_yu1ZDdlkzR0f0=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":540}},"commentCount":10,"discussionUrl":"https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":575},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":10}],"keywords":"webdev,javascript,typescript","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"The Differences Between 'Object', '{}', and 'object' in TypeScript"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-differences-between-object-and-object-in-typescript-0ovwxcgqx","comment":[{"@type":"Comment","text":"eu gostei ✅","datePublished":"2024-07-26T08:28:58.490Z","url":"https://daily.dev/posts/0ovWxcgqx#c-fKrmFMy43","author":{"@type":"Person","name":"João Eduardo Panzo","url":"https://daily.dev/eduardojpanzo","image":"https://media.daily.dev/image/upload/s--Y8DQP3H3--/f_auto/v1728881526/avatars/avatar_hsR8nUTPxi9hK9U7gt7rV"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Still can’t get the difference","datePublished":"2024-10-07T16:20:46.203Z","url":"https://daily.dev/posts/0ovWxcgqx#c-KioA3cVBY","author":{"@type":"Person","name":"Sam 350","url":"https://daily.dev/sam350","image":"https://lh3.googleusercontent.com/a/ACg8ocLOfhPyRsg9PUB97UzIVbPbD8B6EkIrFFnEhVrLPR3QX8d9l6I=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Very Useful.","datePublished":"2024-08-12T11:34:26.304Z","url":"https://daily.dev/posts/0ovWxcgqx#c-L67H4ekOH","author":{"@type":"Person","name":"Syed Umair","url":"https://daily.dev/syedumair","image":"https://lh3.googleusercontent.com/a/ACg8ocKyVJ_E6JIU_3UYTP5oDIAo7AYxq-jdo_MLvA3JiKp9P9nL4g=s96-c"}},{"@type":"Comment","text":"Also, the arrays are Non Primitive.","datePublished":"2024-10-04T08:57:59.266Z","url":"https://daily.dev/posts/0ovWxcgqx#c-TbwLY65wF","author":{"@type":"Person","name":"Farrukh Waheed","url":"https://daily.dev/farrrukh","image":"https://lh3.googleusercontent.com/a/ACg8ocKQ9TDrUB1dyhh6a07MzpqwKnJfz4DKWd-rKURxM3TbBuWiHhS0=s96-c"}},{"@type":"Comment","text":"Clean and simple explanation.\nThanks","datePublished":"2024-10-22T10:21:02.067Z","dateModified":"2024-10-22T10:21:10.364Z","url":"https://daily.dev/posts/0ovWxcgqx#c-CRXpz8sxd","author":{"@type":"Person","name":"Joao Penas","url":"https://daily.dev/joaopenas","image":"https://lh3.googleusercontent.com/a/ACg8ocJqQUXtAznu-q2aWmLOqHRDFyq_5_8teEo_NRSg55iQ4H_VF1LCRg=s96-c"}}]}
```

