Acme.BookStore.HttpApi.Host/node_modules/es5-ext/test/function/#/curry.js

(完整代码) 499B

"use strict";

var toArray = require("../../../array/to-array")

  , f = function () {
 return toArray(arguments);
};

module.exports = function (t, a) {
	var x, y = {}, z;
	a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
	x = t.call(f, 5, {});
	a(x.length, 5, "Length #1");
	z = x(1, 2);
	a(z.length, 3, "Length #2");
	z = z(3, 4);
	a(z.length, 1, "Length #1");
	a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
	a.deep(x(8, 3)(y, 45)("raz", 6), [8, 3, y, 45, "raz"], "Many arguments #2");
};

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。