4 lines
60 B
JavaScript
4 lines
60 B
JavaScript
function count(obj) {
|
|
return Object.keys(obj).length;
|
|
}
|
|
|