flatten.js 212 B

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