API Reference > bentleyjs-core > Collections > Dictionary > extractPairs extractPairs Method Extracts the contents of this dictionary as an array of { key, value } pairs, and empties this dictionary. extractPairs(): Array<{ key: K, value: V }> Returns - Array<{ key: K, value: V }> An array of { key, value } pairs sorted by key. Defined in core/bentley/src/Dictionary.ts Line 163 Last Updated: 13 June, 2024