mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 02:31:41 +00:00
Implement Array#sort (#57)
This commit is contained in:
1
std/assembly.d.ts
vendored
1
std/assembly.d.ts
vendored
@ -304,6 +304,7 @@ declare class Array<T> {
|
||||
slice(from: i32, to?: i32): T[];
|
||||
splice(start: i32, deleteCount?: i32): void;
|
||||
reverse(): T[];
|
||||
sort(comparator?: (a: T, b: T) => i32): T[];
|
||||
}
|
||||
|
||||
/** Class representing a C-like array of values of type `T` with limited capabilities. */
|
||||
|
Reference in New Issue
Block a user