<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie" -->

---
title: 20 JavaScript shorthand to save time | daily.dev
description: Data Structures: Why do we need Data Structures? Why does it make sense to use data structures to build data structures? Why is it so important to have a data...
canonical: https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 20 JavaScript shorthand to save time | daily.dev
og:description: Data Structures: Why do we need Data Structures? Why does it make sense to use data structures to build data structures? Why is it so important to have a data...
og:url: https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie
og:image: https://api.daily.dev/og/posts/goFP614iE.png
og:image:alt: 20 JavaScript shorthand to save time
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.

# 20 JavaScript shorthand to save time

**[DevDojo](https://daily.dev/sources/devdojo)** · [@emmaturner](https://daily.dev/emmaturner) · 3 min read · 139 upvotes · 13 comments

## Summary

Data Structures: Why do we need Data Structures? Why does it make sense to use data structures to build data structures? Why is it so important to have a data structure that can be used to build a database of data? Why should we use data Structures to create data structures for data?

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devdojo.com/emmaturner/20-javascript-shorthand-to-save-time>

## Community discussion

Top comments from developers on daily.dev.

**@leereichardt** · 1 upvotes

> Yeah, as soon as you have more than one person working on these with a VCS, these shorthands aren't faster at all. Just moving everything to one line doesn't really save any time, and then when merging, you can get mega conflicts. Just be normal, write it on multiple lines, then compress it later.

**@khattakdev** · 1 upvotes

> Just make my day thanks for uploading such a useful and magic content!

**@mohammadtokee** · 0 upvotes

> this article is very helpful.

**@guivern** · 0 upvotes

> useful tips! :)

**@rajendrasinh** · 0 upvotes

> A nice and very useful article.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie)

```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":"20 JavaScript shorthand to save time","url":"https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie"},"datePublished":"2021-04-27T11:57:30.720Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Data Structures: Why do we need Data Structures? Why does it make sense to use data structures to build data structures? Why is it so important to have a data...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1d08f5024e06672a6df50b5e9c36fe04","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1d08f5024e06672a6df50b5e9c36fe04","isAccessibleForFree":true,"articleSection":"DevDojo","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":"Emma Turner","url":"https://daily.dev/emmaturner","image":"https://lh3.googleusercontent.com/a-/AOh14Ghbqkg3uiBcOGBrF8Pz1ytth1SL8ac_XxdNjkAj=s100","description":"Front-end Developer Who blogs a lot","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":190}},"commentCount":13,"discussionUrl":"https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":139},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":13}],"keywords":"javascript","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevDojo","item":"https://daily.dev/sources/devdojo"},{"@type":"ListItem","position":3,"name":"20 JavaScript shorthand to save time"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/20-javascript-shorthand-to-save-time-gofp614ie","comment":[{"@type":"Comment","text":"Yeah, as soon as you have more than one person working on these with a VCS, these shorthands aren’t faster at all. Just moving everything to one line doesn’t really save any time, and then when merging, you can get mega conflicts. Just be normal, write it on multiple lines, then compress it later.","datePublished":"2021-04-27T22:33:35.826Z","url":"https://daily.dev/posts/goFP614iE#c-thNWW7CQ3","author":{"@type":"Person","name":"Lee","url":"https://daily.dev/leereichardt","image":"https://avatars.githubusercontent.com/u/1117892?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Just make my day thanks for uploading such a useful and magic content!","datePublished":"2021-04-27T18:16:25.059Z","url":"https://daily.dev/posts/goFP614iE#c-ERks4fYFr","author":{"@type":"Person","name":"Zahoor Khattak","url":"https://daily.dev/khattakdev","image":"https://lh4.googleusercontent.com/-_I9ScDUcppk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucnwbQo6xeHP_jX28wNSgfxNAJSZVA/s100/photo.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"this article is very helpful.","datePublished":"2021-05-27T22:08:44.820Z","url":"https://daily.dev/posts/goFP614iE#c-h39vtfSo9","author":{"@type":"Person","name":"Mohammad Tokee","url":"https://daily.dev/mohammadtokee","image":"https://media.daily.dev/image/upload/s--hpAcwXie--/f_auto/v1733075871/avatars/avatar_SUq1U_Jzw"}},{"@type":"Comment","text":"useful tips! :)","datePublished":"2021-04-27T18:19:54.608Z","url":"https://daily.dev/posts/goFP614iE#c-at2rvvp2H","author":{"@type":"Person","name":"Guillermo Verón","url":"https://daily.dev/guivern","image":"https://avatars.githubusercontent.com/u/35076289?v=4"}},{"@type":"Comment","text":"A nice and very useful article.","datePublished":"2021-04-27T17:44:42.808Z","url":"https://daily.dev/posts/goFP614iE#c-Chf5nq2dH","author":{"@type":"Person","name":"Rajendrasinh Parmar","url":"https://daily.dev/rajendrasinh","image":"https://avatars0.githubusercontent.com/u/8512172?v=4"}}]}
```

