UNPKG

@quinck/collections

Version:

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

15 lines (14 loc) 394 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Map.prototype.toArray = function () { const _self = this; return Array.from(_self.entries()); }; Map.prototype.keysArray = function () { const _self = this; return Array.from(_self.keys()); }; Map.prototype.valuesArray = function () { const _self = this; return Array.from(_self.values()); };