minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-11-27 02:28:10 +03:00
parent 8fe306b324
commit d64b1f069a

View File

@ -636,14 +636,17 @@ Compare to arrays ignoring element order and count.
Sort array as a different array.
```bnf
<array>.sortAs(<other>)
<array>.sortAs(<other>, 'tail')
<array>.sortAs(<other>, 'head')
-> <array>
<array>.sortAs(<other>, 'tail')
-> <array>
```
Elements not present in `<other>` retain their relative order and are
placed after the sorted elements if `'tail'` is passed as second argument
(default) and before them if `'tail'` is passed.
placed after the sorted elements if `'head'` (i.e. _"sorted at head of
array"_) is passed as second argument (default) and before them if
`'tail'` (_"sorted at tail"_) is passed.
Example:
```javascript