# SplayTreeMap

### new SplayTreeMap()

```typescript
/**
 * Creates an instance of SplayTreeMap.
 *
 * @param iterable Iterable of pairs to create the new map with.
 * @param compare Comparison function for key-value pairs sorting by key. Keys are compared as strings by default.
 */
constructor(iterable: Iterable<[K, V]> = [], compare: CompareFunc<K> = compareAsStrings)
```

Properties and methods of this class are fully compatible with:

{% content-ref url="sortedmap" %}
[sortedmap](https://alex-myznikov.gitbook.io/adsjs/api/maps/sortedmap)
{% endcontent-ref %}
