We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b2a19e commit 774c32bCopy full SHA for 774c32b
src/compound.ts
@@ -70,9 +70,9 @@ export class ArrayResult<const T> {
70
return new ArrayResult([...this.array].sort(comparer));
71
}
72
73
- sortBy(mapper: (value: T) => number): ArrayResult<T> {
74
- return this.sort((left, right) => mapper(left) - mapper(right));
75
- }
+ // sortBy(mapper: (value: T) => number): ArrayResult<T> {
+ // return this.sort((left, right) => mapper(left) - mapper(right));
+ // }
76
// addErrorWhenNone(error: () => ResultError): ArrayResult<T> {
77
// if (this.isError() && this.errors.length === 0) {
78
// return ArrayResult.errors([error()]);
0 commit comments