Updated examples

Removed duplicate and unnecessary examples.
This commit is contained in:
Angelos Chalaris
2018-01-04 14:22:56 +02:00
parent 9341f0aaaa
commit 8281457945
45 changed files with 52 additions and 104 deletions

View File

@ -12,5 +12,4 @@ const minN = (arr, n = 1) => [...arr].sort((a, b) => a - b).slice(0, n);
```js
minN([1, 2, 3]); // [1]
minN([1, 2, 3], 2); // [1,2]
minN([1, 2, 3], 4); // [1,2,3]
```