> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/builtin/arr/ext/arr.isempty.md).

# arr.isEmpty

[JS](/web/js.md) ⟩ [object](/web/js/val/obj.md) ⟩ [built-in](/web/js/val/builtin.md) ⟩ [Array](/web/js/val/builtin/arr.md) ⟩ [custom properties](/web/js/val/builtin/arr/ext.md) ⟩ .isEmpty

{% tabs %}
{% tab title="💾 程式" %}

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

{% endtab %}

{% tab title="📘 手冊" %}

* [Object.defineProperty()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty)
  {% endtab %}

{% tab title="⬇️ 應用" %}

* [Google Apps Script](/web/appendix/gas.md) app [helpers](/web/appendix/gas/app/helpers.md).
  {% endtab %}
  {% endtabs %}
