564b418f7d99ff06925a860932012fd68b1d861a63a2b791e37cf351db4a058f2eb549c298f9e26da7be9136c107d01b386a12b0d38d27e1de2fcc53c29428 333 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. /**
  4. * Flatten nested arrays (max depth is 2) into a non-nested array of non-array items.
  5. */
  6. function flatten(items) {
  7. return items.reduce(function (collection, item) { return [].concat(collection, item); }, []);
  8. }
  9. exports.flatten = flatten;