Implement Collection<T>.size() on map's values() in JS
This commit is contained in:
@@ -474,6 +474,9 @@
|
|||||||
isEmpty: function () {
|
isEmpty: function () {
|
||||||
return this.map.$size === 0;
|
return this.map.$size === 0;
|
||||||
},
|
},
|
||||||
|
size: function () {
|
||||||
|
return this.map.size();
|
||||||
|
},
|
||||||
// TODO: test it
|
// TODO: test it
|
||||||
contains: function (o) {
|
contains: function (o) {
|
||||||
return this.map.containsValue_za3rmp$(o);
|
return this.map.containsValue_za3rmp$(o);
|
||||||
|
|||||||
Reference in New Issue
Block a user