---
title: "Discussion on \"6 JS one-liners that save time.\" | Hashnode"
description: "Discussion on \"6 JS one-liners that save time.\". Here are 6 Js one-liners that just saves me time when I write code.\nRemove Duplicated from Array\nYou can easily remove duplicates with Set in JavaScript. It's a lifesaver.\nconst removeDuplicates = (arr) => [...new Set(arr)];\n\nconsole.log(removeDuplic..."
url: "https://hashnode.com/posts/js-one-liners-that-save-time/61483ba1699fe76cd3483f18"
---

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

Discussion

# [6 JS one-liners that save time.](https://blog.dehlin.dev/js-one-liners-that-save-time?utm_source=hashnode&utm_medium=feed)

Here are 6 Js one-liners that just saves me time when I write code. Remove Duplicated from Array You can easily remove duplicates with Set in JavaScript. It's a lifesaver. const removeDuplicates = (arr) => \[...new Set(arr)\]; console.log(removeDuplic...

Sep 20, 2021 · 2 min read · blog.dehlin.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#developer](https://hashnode.com/tag/developer)
-   [#productivity](https://hashnode.com/tag/productivity)
-   [#guide](https://hashnode.com/tag/guide)

## Written by

[Simen Daehlin](https://hashnode.com/@eventyret)

@eventyret · United Kingdom

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

Coding made easy

Software Engineer @Luno 🚀 JS/TS and Docker enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
