Merge pull request #19374 from ashwinr/master

Underscore: Make comparator optional in sort method
This commit is contained in:
Nathan Shively-Sanders
2017-09-06 15:10:32 -07:00
committed by GitHub
+1 -1
View File
@@ -6042,7 +6042,7 @@ declare module _ {
* @param compareFn Optional. Specifies a function that defines the sort order. If omitted, the array is sorted according to each character's Unicode code point value, according to the string conversion of each element.
* @return The sorted array.
**/
sort(compareFn: (a: T, b: T) => boolean): _Chain<T>;
sort(compareFn?: (a: T, b: T) => boolean): _Chain<T>;
/**
* Changes the content of an array by removing existing elements and/or adding new elements.