Sha256: 6dd7d03d5a6b990947f5ff5f7ce3afec5d96bfd34432313ff09e0a90f201c981
Contents?: true
Size: 497 Bytes
Versions: 23
Compression:
Stored size: 497 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.finalize = finalize; exports.flattenToSet = flattenToSet; function finalize(deepArr) { return Object.freeze(deepArr); } function flattenToSet(arr) { const result = new Set(); const stack = [arr]; while (stack.length > 0) { for (const el of stack.pop()) { if (Array.isArray(el)) stack.push(el);else result.add(el); } } return result; } 0 && 0; //# sourceMappingURL=deep-array.js.map
Version data entries
23 entries across 16 versions & 3 rubygems