Commit graph

149 commits

Author SHA1 Message Date
Ilya Kantor
392b1914ef
Merge pull request #3008 from Rnbsov/patch-45
👾 just add missed break line
2022-06-18 20:53:46 +03:00
Ilya Kantor
c3b904def3 minor fixes 2022-06-14 07:30:49 +02:00
Ilya Kantor
bebcbfa134 minor fixes 2022-06-13 23:49:18 +02:00
Lavrentiy Rubtsov
c7cc166f72
👾 add clarifying example 2022-05-24 02:08:03 +06:00
Lavrentiy Rubtsov
60209e64d9
👾 just add another one missed break line 2022-05-14 15:41:37 +06:00
Lavrentiy Rubtsov
a85e802056
👾 remove one extra break line 2022-05-14 15:37:55 +06:00
Lavrentiy Rubtsov
ad50be199b
👾 just add missed break line 2022-05-14 15:14:26 +06:00
skaunov
c68cb111a4
Update test.js
Hey there! I suggest to slightly modify the first test case, so its input cover both checks in the solution.
Currently omitting the check for _a_ still let solution to pass the test.
```js
if (/* val < a || */ val > b) {
        arr.splice(i, 1);
        i--;
      }
```
2022-02-15 16:53:29 +03:00
Ilya Kantor
c5358c5949 themable pictures 2021-12-12 22:53:17 +03:00
Mahdyar Hasanpour
ce382738f9
add a missing colon 2021-07-17 18:05:27 +04:30
Ilya Kantor
246c6c4340
Merge branch 'master' into patch-1 2020-11-24 23:04:21 +03:00
LeviDing
de8cf9fe5c
FIX: delete extra space 2020-10-17 14:49:29 +08:00
Dorell James
040efef646
Update task.md
Updated based on suggestion on issue #1769
2020-10-13 00:36:26 +08:00
Vse Mozhe Buty
689392ecce Fix my typos in 1.5.5 2020-10-11 22:47:26 +03:00
Ilya Kantor
0599d07b3c
Merge pull request #2177 from vsemozhetbyt/patch-3
Make code example more realistic and safe
2020-10-11 17:23:27 +03:00
Ilya Kantor
1a4849ac4c
Merge pull request #2178 from vsemozhetbyt/patch-4
Correct outdated info
2020-10-11 17:21:09 +03:00
Ilya Kantor
60ec589222
Merge pull request #2179 from vsemozhetbyt/patch-5
Fix some possible typos and omissions in 1.5.5
2020-10-11 17:20:11 +03:00
Ilya Kantor
80efcda2cb
Merge pull request #2180 from vsemozhetbyt/patch-6
Add a note on some()/every() short circuit
2020-10-11 17:19:16 +03:00
Ilya Kantor
37f67e6e7b
Merge pull request #2181 from vsemozhetbyt/patch-7
Mention arr.flat()/arr.flatMap() in 1.5.5
2020-10-11 17:18:50 +03:00
Ilya Kantor
3ba22f75a7
Merge pull request #2184 from vsemozhetbyt/patch-8
Fix a typo in a 1.5.5 task solution
2020-10-11 17:17:25 +03:00
Vse Mozhe Buty
3188466967
Make a solution of 1.5.5 task more correct
Proposed solution is in sync with some previous sort function examples. It also makes sorting stable (does not skip `0` result).
2020-10-10 21:22:06 +03:00
Vse Mozhe Buty
4ee44dc002
Fix a typo in a 1.5.5 task solution 2020-10-10 21:11:53 +03:00
Vse Mozhe Buty
7b70f79592
Mention arr.flat()/arr.flatMap() in 1.5.5 2020-10-10 00:17:09 +03:00
Vse Mozhe Buty
dea1a2d375
Add a note on some()/every() short circuit 2020-10-10 00:05:41 +03:00
Vse Mozhe Buty
858ad69e92
Fix some possible typos and omissions in 1.5.5 2020-10-09 23:46:13 +03:00
Vse Mozhe Buty
b2b83b7472
Correct outdated info
As of the last versions of V8 (i.e. Chrome and Node.js), the current info seems outdated.

See also https://v8.dev/blog/array-sort
2020-10-09 17:47:25 +03:00
Vse Mozhe Buty
f880f1fb63
Make code example more realistic and safe
1. Without a real sorting part, the data output is not the same as with real sort (as the array is not really sorted when the callback returns `undefined`).
2. Current example may somehow encourage a reader to write sorting callbacks with undetermined behavior.
2020-10-09 17:42:08 +03:00
Ilya Kantor
e76cf3a3c2 closes #2136 #2150 2020-09-24 22:51:36 +03:00
Ilya Kantor
b18b5ba761 minor fixes 2020-09-24 17:07:39 +03:00
Ruslan Aleev
6d9b4437a4
Changed "position" to "index" for slice() method 2020-09-24 12:38:24 +03:00
sanghyo95
3b71f769a7
add semicolon
add semicolon 13,20 line
2020-08-24 08:54:34 +09:00
Logan-Schelly
333cb9defc
Fixed minor typos
The empty users array was undeclared in the second test, and the object in the first test was missing a comma in its declaration.
2020-05-21 14:12:51 -06:00
Logan-Schelly
77cb06d6ac
Fixed a comment, to reflect changes in the task.
The task has a test with a missing comma.  That same comma is missing in the comment, so I'm putting it here as well.
2020-05-21 14:10:21 -06:00
Ilya Kantor
81def0275e minor fixes 2020-02-18 23:46:24 +00:00
Ilya Kantor
fd4f7375b7 reduce improvement 2019-12-27 23:26:02 +03:00
Ilya Kantor
b015213b7b minor fixes 2019-12-26 15:52:33 +03:00
Ilya Kantor
6165a9a727 split arrow functions 2019-11-06 14:05:43 +03:00
Ilya Kantor
a967ad0cf9 closes #1560 2019-11-02 21:30:26 +03:00
Ilya Kantor
601d9583f7
Merge pull request #1530 from lumosmind/patch-5
add parameter definition to arr.find()
2019-10-29 23:43:23 +03:00
Ilya Kantor
be6856d4bc closes #1532 2019-10-29 23:42:40 +03:00
lumosmind
07a21c814f
add attribute defination to arr.find()
For consistency with definition of "arr.filter(fn)" , we need to add 'fn' parameter to definition of arr.find().
2019-10-28 17:21:26 +03:00
lumosmind
b5725a8be0
'str' inside of 'start'
splice method's minimum parameter is 'start' and it is number type. In this tutorial 'str' stands for string parameters.
2019-10-28 16:27:55 +03:00
Alexey Pyltsyn
33cca1b111
Fix confusion in the task 2019-10-22 18:51:47 +03:00
Ilya Kantor
6d44c1e1ac fixes 2019-10-10 17:29:27 +03:00
Ilya Kantor
7418213b66 re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
va-z
8f0476079c
Typo fixes 2019-09-23 20:27:14 +05:00
Ilya Kantor
a0720187cb fixes 2019-09-07 17:39:32 +03:00
Ilya Kantor
c738e37b01 fixes 2019-09-07 17:30:55 +03:00
Ilya Kantor
cdc480a577 minor 2019-09-06 20:14:00 +03:00
Ilya Kantor
df3260a44e fixes 2019-08-29 20:40:41 +03:00