JS ⟩ object ⟩ built-in ⟩ Array ⟩ custom properties ⟩ .isEmpty
// 🔸 arr.isEmpty Object.defineProperty(Array.prototype, 'isEmpty', { get() { return this.length === 0 }, });
Object.defineProperty()
Google Apps Script app helpers.
Last updated 1 year ago