'use strict'; /** * Utility module to work with sets. * * @module set */ const create = () => new Set(); /** * @template T * @param {Set} set * @return {Array} */ const toArray = set => Array.from(set); /** * @template T * @param {Set} set * @return {T} */ const first = set => set.values().next().value || undefined; /** * @template T * @param {Iterable} entries * @return {Set} */ const from = entries => new Set(entries); var set = /*#__PURE__*/Object.freeze({ __proto__: null, create: create, toArray: toArray, first: first, from: from }); exports.create = create; exports.first = first; exports.from = from; exports.set = set; exports.toArray = toArray; //# sourceMappingURL=set-0f209abb.cjs.map