orEmpty method

  1. @useResult
KtMap<K, V> orEmpty()

Returns the KtMap if its not null, or the empty KtMap otherwise.

Implementation

@useResult
KtMap<K, V> orEmpty() => this ?? KtMap<K, V>.empty();