How to match an empty dictionary in Javascript? January 20, 2023 by Tarik function isEmpty(obj) { return Object.keys(obj).length === 0; }