egonSchiele / grokking_algorithms

Code for the book Grokking Algorithms (https://amzn.to/29rVyHf)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript/ES6 solution has formatting problems and non-working example for chapter two

Alexandrshy opened this issue · comments

  1. All solutions for JS for the second chapter have a problem: it changes the source array by reference. Expected behavior: a function call creates a new sorted array without changing the source;
  2. For formatting JavaScript code is better to use Prettier. This will help in all examples to make the same formatting and it will look better.

I fixed it here #129