Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Map.clear

clear() -> self

Description

Remove all key/value pairs.

$map = { a: 1, b: 2, c: 3 }

$map.clear()

print($map)
//= {}

See Also