Sayed's Blog

drawlang > docs > users > library > maps

Maps

  • containsKey(key) - Returns true if map contains a mapping for specified key.

  • clear() - Empties map.

  • entries() - Returns array of mappings contained in map.

  • get(key) - Returns value to which the specified key is mapped.

  • keys() - Returns array of keys contained within map.

  • put(key, value) - Associates specified key with specified value in map.

  • remove(key) - Removes entry for specified key and returns it.

  • values() - Returns array of values in map.

    © 2023