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 f95b39c commit 0ad516bCopy full SHA for 0ad516b
15_totalIntegers/solution/totalIntegers-solution.js
@@ -1,4 +1,5 @@
1
-const totalIntegers = function (obj, count = 0) {
+const totalIntegers = function (obj) {
2
+ let count = 0;
3
const isObject = (value) => typeof value === 'object' && value !== null;
4
5
if (typeof obj !== 'object' || obj === null) {
0 commit comments