Is the Array Empty?

Published by Mubashir Hassan in

Write a function that returns true if given array is empty, and false otherwise.

Examples

isEmpty({}) ➞ true

isEmpty({1, 2, 3}) ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.