Skip to content

Commit 507c436

Browse files
nik-revmao-sz
andauthored
Update 15_totalIntegers/solution/totalIntegers-solution.js
Co-authored-by: MaoShizhong <[email protected]>
1 parent d27fab0 commit 507c436

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

15_totalIntegers/solution/totalIntegers-solution.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const totalIntegers = function(obj, count = 0) {
22

3-
if (typeof obj !== 'object' || obj === null) return;
3+
if (typeof obj !== 'object' || obj === null) {
4+
return;
5+
}
46

57
const elements = Object.values(obj);
68

0 commit comments

Comments
 (0)