From 0b0fe7fa6524787e873489d2d57c82a76dd972e6 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 28 Dec 2017 13:42:57 +0200 Subject: [PATCH] Update quickSort.md --- snippets/quickSort.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/quickSort.md b/snippets/quickSort.md index 38e0e0fad..c16faf2d0 100644 --- a/snippets/quickSort.md +++ b/snippets/quickSort.md @@ -2,7 +2,9 @@ QuickSort an Array (ascending sort by default). -Use recursion. Use `Array.filter` and spread operator (`...`) to create an array that all elements with values less than the pivot come before the pivot, and all elements with values greater than the pivot come after it. If the parameter `desc` is truthy, return array sorts in descending order. +Use recursion. +Use `Array.filter` and spread operator (`...`) to create an array that all elements with values less than the pivot come before the pivot, and all elements with values greater than the pivot come after it. +If the parameter `desc` is truthy, return array sorts in descending order. ```js const quickSort = ([n, ...nums], desc) =>