Buy me a coffee
Kotlin
›
Map
›
getOrDefault
getOrDefault
Map
키가 없으면 기본값을 반환합니다.
문법
map.getOrDefault(key, default)