UNPKG

@quinck/collections

Version:

Allows extra operations on JavaScript collections: Array, Map and Set.

12 lines (11 loc) 331 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const EMPTY_ARRAY_LENGTH = 0; if (!Array.prototype.isEmpty) { Object.defineProperty(Array.prototype, 'isEmpty', { get: function () { const _self = this; return _self.length === EMPTY_ARRAY_LENGTH; }, }); }