We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66de414 commit 99f8a40Copy full SHA for 99f8a40
15_totalIntegers/solution/totalIntegers-solution.js
@@ -2,7 +2,7 @@ const totalIntegers = function(obj, count = 0) {
2
3
if (typeof obj !== 'object' || obj === null) return;
4
5
- const elements = Array.isArray(obj) ? obj : Object.values(obj)
+ const elements = Array.isArray(obj) ? obj : Object.values(obj);
6
7
for (const el of elements) {
8
if (Number.isInteger(el)) ++count;
0 commit comments