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(): { key: K, value: V }[] Returns - { key: K, value: V }[] An array of { key, value } pairs sorted by key. Defined in core/bentley/src/Dictionary.ts Line 200 Last Updated: 11 June, 2024