Map "clear" method.

This commit is contained in:
Bob Nystrom
2015-01-25 08:39:44 -08:00
parent e740a4c95a
commit 251b623c65
2 changed files with 18 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
var a = {1: 1, 2: 2, 3: 3}
a.clear
IO.print(a) // expect: {}
IO.print(a.count) // expect: 0
// Returns null.
IO.print({1: 2}.clear) // expect: null