Skip to content

Commit aa298da

Browse files
committed
syntex fixed
1 parent e711e83 commit aa298da

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/recursion.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ const checkMatchingLeaves = (obj) => {
4848
*/
4949
var values = [];
5050

51-
(function rec(param) {
52-
Object.keys(param).forEach(function(key) {
53-
if (typeof param[key] === 'object') return rec(param[key]);
54-
values.push(param[key])
55-
})
56-
})(obj);
51+
(
52+
function rec(param) {
53+
Object.keys(param).forEach(function(key) {
54+
if (typeof param[key] === 'object') return rec(param[key]);
55+
values.push(param[key])
56+
})
57+
}
58+
)(obj);
5759

5860
return values.every( x => values[0] === x);
5961
};

0 commit comments

Comments
 (0)