← Back to challenges

Is the Object Empty?

JavaScriptHardobjectslanguage_fundamentalsvalidation

Instructions

Write a function that returns true if an object is empty, and false otherwise.

Examples

isEmpty({}) ➞ true

isEmpty({ a: 1 }) ➞ false

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Return Only the Integer