mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8fe306b324
commit
d64b1f069a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user