---
title: "Discussion on \"7 Useful JS One Liners To Write Clean Code\" | Hashnode"
description: "Discussion on \"7 Useful JS One Liners To Write Clean Code\". Shuffle Array\nWhile using algorithms that require some degree of randomization, you will often find shuffling arrays quite a necessary skill. The following snippet shuffles an array in place with O(n log n) complexity.\nconst shuffleArray = (arr) => a..."
url: "https://hashnode.com/posts/js-one-liners/639d9d5cc432fa51d96a34dd"
---

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

Discussion

# [7 Useful JS One Liners To Write Clean Code](https://blogs.manishrana.in/js-one-liners?utm_source=hashnode&utm_medium=feed)

Shuffle Array While using algorithms that require some degree of randomization, you will often find shuffling arrays quite a necessary skill. The following snippet shuffles an array in place with O(n log n) complexity. const shuffleArray = (arr) => a...

Dec 17, 2022 · 2 min read · blogs.manishrana.in  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#oneliner](https://hashnode.com/tag/oneliner)
-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)

## Written by

[Manish Rana](https://hashnode.com/@manishrana)

@manishrana · Noida, India

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

Blockchain Enthusiast | Full Stack web3 Developer

Sr. Full Stack Developer | Blockchain | Web3

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
