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

Version Path
trusty-cms-6.3.1 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.51 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.51 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.50 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.50 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.49 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.48 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.48 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.47 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.47 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.46 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.46 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.45 node_modules/jscodeshift/node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.45 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.44 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.43 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.42 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.41 node_modules/@babel/core/lib/config/helpers/deep-array.js
immosquare-cleaner-0.1.40 node_modules/@babel/core/lib/config/helpers/deep-array.js