Manish Ranamanishrana.hashnode.dev·Dec 17, 20227 Useful JS One Liners To Write Clean CodeShuffle 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...29 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.