mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
experimenting...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
423ddbd6d1
commit
e55e35e022
8
Array.js
8
Array.js
@ -396,6 +396,14 @@ object.Mixin('ArrayProtoMixin', 'soft', {
|
||||
-place
|
||||
: i - j }) },
|
||||
|
||||
/*/ XXX EXPERIMENTAL...
|
||||
// ...if this is successful then merge this with .sortAs(..)
|
||||
sort: function(cmp){
|
||||
return (arguments.length == 0 || typeof(cmp) == 'function') ?
|
||||
object.parentCall(ArrayProtoMixin.data.sort, this, ...arguments)
|
||||
: this.sortAs(...arguments) },
|
||||
//*/
|
||||
|
||||
// Same as .sortAs(..) but will not change indexes of items not in other...
|
||||
//
|
||||
// Example:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user