Skip to content

selection-sort ​

Guide: /guide/algorithms/sort/selection

Signature ​

ts
selectionSort(array);

Params: ​

NameTypeRequiredDefaultDescription
arrayArray<number>+array is mutable

Returns: ​

Array<number> ​


MIT Licensed