Implement a function isEmpty(value) that checks whether a value is empty.
The function should:
{}[]''Example
isEmpty({}); // true isEmpty([]); // true isEmpty(''); // true isEmpty(new Map()); // true isEmpty(new Set()); // true isEmpty({a:1}); // false isEmpty([1]); // false isEmpty('foo'); // false
JavaScript Function
No test results yet
Click "Run" to execute tests