💾arr.isEmpty

JSobjectbuilt-inArraycustom properties ⟩ .isEmpty

// 🔸 arr.isEmpty
Object.defineProperty(Array.prototype, 'isEmpty', {
  get() { return this.length === 0 },
});

Last updated