๐พarr.isEmpty
JS โฉ object โฉ built-in โฉ Array โฉ custom properties โฉ .isEmpty
// ๐ธ arr.isEmpty
Object.defineProperty(Array.prototype, 'isEmpty', {
get() { return this.length === 0 },
});
Last updated
Was this helpful?
JS โฉ object โฉ built-in โฉ Array โฉ custom properties โฉ .isEmpty
// ๐ธ arr.isEmpty
Object.defineProperty(Array.prototype, 'isEmpty', {
get() { return this.length === 0 },
});
Last updated
Was this helpful?