We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a4d1a commit bf6595dCopy full SHA for bf6595d
JavaScript/3-function.js
@@ -3,8 +3,9 @@
3
const arrayToQueueAdapter = () => {
4
const arr = [];
5
arr.enqueue = data => arr.push(data);
6
- arr.dequeue = () => this.pop();
7
- arr.count = () => this.length;
+ arr.dequeue = () => arr.pop();
+ arr.count = () => arr.length;
8
+ return arr;
9
};
10
11
// Usage
JavaScript/6-interface.js
@@ -49,7 +49,7 @@ console.dir({
49
name: dict.has('name'),
50
city: dict.has('city'),
51
},
52
- keys: dict.get('name'),
+ keys: dict.keys(),
53
});
54
55
-dict.clear();
+//dict.clear();
0 commit comments