kotlin-stdlib / kotlin.collections / HashMap / size size Common Native 1.0 val size: Int(Common source) (Native source) JS 1.1 open val size: Int(source) Returns the number of key/value pairs in the map.