commit
5ad8c9f4bd
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ Just loop over the object and `return false` immediately if there's at least one
|
|||
|
||||
```js
|
||||
function isEmpty(obj) {
|
||||
for(let key in obj) {
|
||||
for (let key in obj) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue