Is the Hash Empty?

Published by Helen Yu in

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

Examples

is_empty({}) ➞ true

is_empty({ "a" => 1 }) ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.