g2701_2800.s2727_is_object_empty.solution.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
The newest version!
// #Easy #2023_09_19_Time_52_ms_(79.26%)_Space_44.6_MB_(77.05%)
function isEmpty(obj: Record | any[]): boolean {
return Object.keys(obj).length === 0
}
export { isEmpty }
© 2015 - 2024 Weber Informatics LLC | Privacy Policy