Blame view

node_modules/es5-ext/test/function/#/compose.js 322 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  
  var f = function (a, b) {
   return ["a", arguments.length, a, b];
  }
    , g = function (a) {
   return ["b", arguments.length].concat(a);
  }
    , h = function (a) {
   return ["c", arguments.length].concat(a);
  };
  
  module.exports = function (t, a) {
  	a.deep(t.call(h, g, f)(1, 2), ["c", 1, "b", 1, "a", 2, 1, 2]);
  };