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-kotlin Show documentation
Show all versions of leetcode-in-kotlin Show documentation
Kotlin-based LeetCode algorithm problem solutions, regularly updated
// #Easy #2023_08_03_Time_49_ms_(98.24%)_Space_44.6_MB_(79.35%)
function isEmpty(obj: Record | any[]): boolean {
return Object.keys(obj).length === 0
}
export { isEmpty }