Is the Object Empty?

Published by Helen Yu in

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

Examples

isEmpty({}) ➞ true

isEmpty({ a: 1 }) ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.