Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Map.clear

clear()

Description

Remove all key/value pairs.

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

$map.clear();

print($map);
//= {}

See Also