API Reference > bentleyjs-core > Collections > SortedArray > extractArray extractArray Method Extracts the sorted array as a T[] and empties the contents of this SortedArray. extractArray(): T[] Returns - T[] the contents of this SortedArray as a T[]. Defined in core/bentley/src/SortedArray.ts Line 311 Last Updated: 12 June, 2024