compose.js 322 B

123456789101112131415
  1. "use strict";
  2. var f = function (a, b) {
  3. return ["a", arguments.length, a, b];
  4. }
  5. , g = function (a) {
  6. return ["b", arguments.length].concat(a);
  7. }
  8. , h = function (a) {
  9. return ["c", arguments.length].concat(a);
  10. };
  11. module.exports = function (t, a) {
  12. a.deep(t.call(h, g, f)(1, 2), ["c", 1, "b", 1, "a", 2, 1, 2]);
  13. };