Implement Collection<T>.size() on map's values() in JS

This commit is contained in:
Ilya Ryzhenkov
2014-12-23 15:31:03 +03:00
parent d908678dcf
commit 217e25855e
+3
View File
@@ -474,6 +474,9 @@
isEmpty: function () {
return this.map.$size === 0;
},
size: function () {
return this.map.size();
},
// TODO: test it
contains: function (o) {
return this.map.containsValue_za3rmp$(o);