Skip to content

Commit d69c4e1

Browse files
committed
Mention that sort() is always eager
Closes immutable-js#1181
1 parent 8c6328f commit d69c4e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

type-definitions/Immutable.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,6 +4200,8 @@ declare module Immutable {
42004200
*
42014201
* Note: `sort()` Always returns a new instance, even if the original was
42024202
* already sorted.
4203+
*
4204+
* Note: This is always an eager operation.
42034205
*/
42044206
sort(comparator?: (valueA: V, valueB: V) => number): this;
42054207

@@ -4211,6 +4213,8 @@ declare module Immutable {
42114213
*
42124214
* Note: `sortBy()` Always returns a new instance, even if the original was
42134215
* already sorted.
4216+
*
4217+
* Note: This is always an eager operation.
42144218
*/
42154219
sortBy<C>(
42164220
comparatorValueMapper: (value: V, key: K, iter: this) => C,

0 commit comments

Comments
 (0)