flatten.js 325 B

123456789101112
  1. "use strict";
  2. var o = [1, 2, [3, 4, [5, 6], 7, 8], 9, 10, [11, 12, [13, 14]], 15];
  3. module.exports = {
  4. "__generic": function (t, a) { a(t.call(this).length, 3); },
  5. "Nested Arrays": function (t, a) {
  6. var result = t.call(o);
  7. a.not(o, result);
  8. a.deep(result, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
  9. }
  10. };